Skip to content

Ruby 3.4.0 ​

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.

This grammar as JSON · All grammar vectors as CSV · Atlas

GrammarSource rulesAlternativesRecursive rulesParameter definitionsRaw LR(0) states
Ruby 3.4.023772513551378

Source and provenance ​

InputUTF-8 bytesSHA-256
parse.y517160e61980759d6aafe014cbd1eae5e423938874487c28e90cb7a72dab2653a0dd5f

Comparison context ​

Source capabilities remain those of the original IR:

json
{
  "orderedChoice": false,
  "ebnfSugar": true,
  "predicates": false,
  "scannerless": false,
  "precedenceTable": true,
  "parameterizedRules": true,
  "lexerRules": false
}

Parseability uses a concrete derived representation; source size and structure remain source-based. Aggregate parseability covers 271 concrete rules, including 12 parameter instances and 27 EBNF helpers.

json
{
  "representation": "parameter-expansion-bnf-v1",
  "sourceRules": 237,
  "concreteRules": 271,
  "parameterInstances": 12,
  "ebnfHelpers": 27,
  "omittedTemplateRules": [
    "@yacc/parameterized/words/2",
    "f_kwarg",
    "f_opt",
    "f_optarg",
    "opt_args_tail"
  ],
  "effectiveCapabilities": {
    "orderedChoice": false,
    "ebnfSugar": false,
    "predicates": false,
    "scannerless": false,
    "precedenceTable": true,
    "parameterizedRules": false,
    "lexerRules": false
  },
  "limits": {
    "instances": 10000,
    "nodeVisits": 1000000,
    "depth": 256,
    "keyBytes": 8388608
  }
}

The JSON retains all rule vectors, diagnostics, unavailable reasons and measurement domains. Source facts, derived measurements and unavailable template-level values must not be pooled as one rule population.

Structural facts for parser grammars.