Skip to main content

Module parser

Module parser 

Source

Structs§

Parser
Token-stream cursor + diagnostic engine. 'tokens ties borrowed lexemes to the source; 'eng ties the engine borrow to the caller.

Functions§

parse
Lex + parse source in one shot, dropping all diagnostics. Convenience for tests + the parse bin; production callers should construct their own DiagnosticEngine.
parse_inline_str
Lex s and run the inline parser on it. Returns the inline Node list (Text, InlineCode, Bold, Italic, Strikethrough, Link, …). Used by table cells, which receive raw cell strings rather than pre-tokenised inline content.