Understanding Ruby Grammar Through Conflicts

時間
2025年8月09日 15:15 ~ 15:45
講者
Yuichiro Kaneko
位置
TR209
英語中階
RubyConf Taiwan

簡介

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.

關於講者

Yuichiro Kaneko

Yuichiro Kaneko

The author of Lrama LALR parser generator. Ruby committer.