Expand description
Recursive-descent parser for Lex. Pratt-style precedence climbing for binary operators; everything else is straightforward LL(1)-with-lookahead.
Structs§
Functions§
- parse
- parse_
with_ src - Parse + attach
#line-comments to the AST. The source string is used only to scan the gaps between tokens (where the lexer skipped whitespace and comments); the parser itself still operates purely on tokens. SeeProgram::leading_commentsfor the data model.