Expand description
Diagnostic codes emitted by the PEG interpreter.
Constants§
- LEFT_
RECURSION - A rule was re-entered at the same input position without any
progress — indicates left recursion. G-3’s
GrammarCheckwill catch this statically; the runtime guard is a backstop that errors out rather than hanging. - NO_
TOP_ TREE - Parse succeeded but the start rule never reached a
super::Peg::Node, so there is no top-levelParseTree. - NULLABLE_
REPEAT - A
super::Peg::Repeatiteration succeeded without consuming input. The interpreter breaks the loop (per §3.5 termination guarantee); this diagnostic is attached when theminbound is also not yet met, turning the situation into a hard failure. - UNEXPECTED
- Input did not match at the farthest failure position; message carries the expected set.
- UNKNOWN_
RULE super::Peg::RuleRefpointed to a rule name not present insuper::Grammar::rules, orsuper::Grammar::startitself is unresolved.