Expand description
Recursive descent parser for the fabula DSL.
The parser is designed for composability: downstream DSLs can reuse it to parse fabula pattern syntax embedded in their own blocks. Key entry points:
Parser::parse_pattern_body()โ parse stages, negations, and temporals without thepattern name { }wrapperParser::pos()/Parser::into_inner()โ read or recover the cursor position for resumable parsingParser::from_tokens_at()โ construct a parser at a specific position in an existing token stream
Structsยง
- Parser
- Parser state: a cursor over a token stream.