Skip to content

Metrics catalog

Metrics are facts with definitions, not an implied ranking of grammar quality. Each metric has a scope and interpretation context.

GroupExamplesTypical class
Sizerules, alternatives, terminalsA
Structurereachable, recursive, productive rulesA or B
ParseabilityFIRST/FOLLOW sizes, LL(1) conflicts, unit-rule cyclesA or B
Redundancycommon prefixes, duplicates, clones, unused declarationsA or B
Graph shapearticulation points, bridges, betweenness, fan-in distributionA
PEGpredicates, shadowing, backtracking and character classesB or C
Operations and stylerecovery, declarations, explicit empty rules, action references, comments, namingB or C
Per-rule vectorsFIRST/FOLLOW, LL(1), width/depth, fan-in/out, start reachabilityA, B, or C
Representationordered choice, EBNF sugar, precedenceB or C
Review signalsunresolved symbols, diagnosticsA for the same policy

The complete definitions, nullability rules, and notApplicable cases are in the normative metrics catalog. Cross-format guidance is in the cross-format notes.

Do not render notApplicable as zero. Do not compare Class B or C values without preserving frontend capabilities and representation context.

Structural facts for parser grammars.