Skip to content

ANTLR JSON ​

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
ANTLR JSON5134unavailableunavailable

Source and provenance ​

InputUTF-8 bytesSHA-256
json/JSON.g412211ec0e422caf2855be3497efaeb5e23f91adc6a65068757e2dcf83467119986f4

Comparison context ​

Source capabilities remain those of the original IR:

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

FIRST/FOLLOW, LL(1), and raw SLR use the source representation when applicable. See the JSON for each unavailable measurement and its reason.

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.