Expand description
Runtime parser for first-class grammar values.
GrammarParser interprets the grammar IR directly. It uses PEG-style
ordered choice, longest-local-match determinisation for unordered choice,
greedy repetition, and a same-rule/same-position guard so left-recursive
grammars fail closed instead of looping.
Structs§
- Grammar
Parser - A
LanguageParserthat interprets aGrammarat runtime.
Functions§
- register_
grammar - Register
grammarunderkey, shadowing the built-in dispatch for that key. - with_
grammar - Builder-style variant mirroring
ParserRegistry::with_parser.