Skip to content

Ruby development parser ​

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 development parser251712140181440

Source and provenance ​

InputUTF-8 bytesSHA-256
parse.y52019190ff67d6f610bacc24439dfac6c1c30ed9eb08aa8b80225c0f074947f1894bb5

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 308 concrete rules, including 47 parameter instances and 28 EBNF helpers.

json
{
  "representation": "parameter-expansion-bnf-v1",
  "sourceRules": 251,
  "concreteRules": 308,
  "parameterInstances": 47,
  "ebnfHelpers": 28,
  "omittedTemplateRules": [
    "@yacc/parameterized/words/2",
    "args-list",
    "args_tail_basic",
    "asgn",
    "compstmt",
    "def_endless_method",
    "f_args-list",
    "f_kw",
    "f_kwarg",
    "f_opt",
    "f_opt_arg",
    "mlhs_items",
    "op_asgn",
    "opt_args_tail",
    "opt_f_block_arg",
    "range_expr",
    "tail-only-args",
    "value_expr"
  ],
  "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.