Structs§
- Budget
Options - Color
Options - Comment
Def - Comment
Options - Comment
Suffix Matcher - Config
Modifier - Debug
Options - Debug
Print Options - ErrMsg
Options - Error
Suffix Context - Fixed
Options - Fixed
Token - Info
Options - Controls typed metadata carriers on native parse results.
- LexCheck
- LexCheck
Token - LexMatcher
- LexOptions
- Line
Options - List
Options - MapOptions
- Match
Token - Match
Token Result - Match
Value - Number
Options - Options
- Parse
Options - Parser
Options - Recover
Options - Result
Options - Rewind
Options - Rule
Options - Safe
Options - Space
Options - String
Options - Text
Options - Value
Def - Value
Options
Enums§
- Error
Suffix - LexCheck
Result - Effect returned by a matcher-family preflight hook.
- Match
Token Matcher - Parse
Prepare - Pre-parse hook. The context-only form preserves the original Rust API;
WithInstanceexposes the owning parser and caller metadata carried by the canonical callback contract. - Text
Modifier - One unquoted-text modifier in declaration order. The value-only form is
convenient for pure serialized hooks; the imperative form exposes the
same live lexer/config state as the canonical
ValModifierand also hands Rust callers explicit rule/context references instead of hiding them on the lexer object.
Constants§
- MAX_
RULE_ HISTORY - The largest
options.rule.historya rule’s links honour. Every replace and push copies up tohistorysnapshots, so the bound is the cost of each link: capped, a parse stays linear in its length whatever the bound, where a bound as long as the sequence copied1 + 2 + … + Nsnapshots. Sixteen is five times the deepest walk the fleet reads (three hops), and the largest bound measured faster than no bound at all: over 300,000 array items a release build took 2.2 s at 16 and 2.8 s unbounded, 3.3 s at 32 and 6.2 s at 64 (doc/rule-history-bound.md). A grammar that asks for more is refused; a larger value set onRuleOptions::historydirectly is read as this, andSome(0)as 1.
Type Aliases§
- Budget
Check - Context
Parse Prepare - Debug
Output - Debug
Source Formatter - Error
Suffix Callback - Imperative
Comment Suffix Matcher - Imperative
LexCheck - Imperative
LexMatcher - Full native custom matcher. Unlike the serialized effect callback, this form can inspect and mutate the live rule/context and advance the lexer.
- Imperative
Text Modifier - LexMatcher
Callback - Effect-based custom lexer matcher used by serialized
options.lex.matchentries. The returned token must consume a non-empty prefix of the remaining source. - LexMatcher
Factory - Setup-time matcher constructor. Rust has one resolved typed option tree,
so it serves the roles of both canonical
cfgand rawoptsarguments. - MapMerge
- Match
Token Callback - Parse
Prepare With Instance - Parser
Start - Parser
Start With Context - Parser
Start With Instance - Value
Text Modifier - Value
Transform