Understanding Ruby Grammar Through Conflicts

Time
2025年8月09日 15:15 ~ 15:45
Speaker
Yuichiro Kaneko
Room
TR209
Collaborative Notes
https://hackmd.io/H1sUacZuxx
EnglishIntermediate
RubyConf Taiwan

Abstract

Have you ever created a parser using an LR parser generator such as Lrama or GNU Bison? If so, you’ve likely encountered conflicts – perhaps even many times – leaving you feeling lost and unsure of what to do. However, conflicts offer incredibly valuable insights for understanding the grammar of programming languages. In this presentation, we will delve into the structure of Ruby’s grammar by intentionally introducing changes to its syntax, triggering conflicts, and then analyzing those conflicts. Through this process, we aim to deepen our understanding of how Ruby’s grammar is constructed.

About the Speaker

Yuichiro Kaneko

Yuichiro Kaneko

The author of Lrama LALR parser generator. Ruby committer.