Skip to content

Ruby parse.y chronicle โ€‹

These are measurements of pinned source representations, not a complexity ranking or a claim that different grammars recognize equivalent languages. Source actions and predicates were not executed. Raw SLR counts omit precedence resolution and cannot be compared with generator conflict declarations.

Full JSON dataset ยท Full CSV dataset

Source rule counts across the sampled Ruby releases

GrammarSource rulesAlternativesRecursive rulesParameter definitionsRaw LR(0) states
Ruby 2.7.0208700132unavailable1207
Ruby 3.0.0220723136unavailable1267
Ruby 3.2.0223730137unavailable1275
Ruby 3.3.0239745141unavailable1323
Ruby 3.4.023772513551378
Ruby 4.0.0244714137141377

Reading the history โ€‹

These snapshots sample release tags rather than every change. Ruby's 3.3.0 release notes document the switch from Bison to Lrama and parameterized-rule support. The table records what this frontend captures in each pinned parse.y; it does not attribute every numeric change to that transition. Ruby's alternative Prism parser is outside this dataset.

Rule and alternative counts describe source structure. A parameterized representation can change those counts without a corresponding change in the recognized language. FIRST/FOLLOW, LL(1), and raw SLR may instead use the recorded concrete expansion, while the source structural measurements retain their original population. Follow each release page for its capabilities, raw data and unavailable reasons.

Comparability depends on the feature version, capability flags and representation policy. A timeline is contextual evidence, not permission to subtract every column across all releases.

Structural facts for parser grammars.