Skip to main content

Module parser

Module parser 

Source
Expand description

An error-tolerant recursive-descent parser over the significant tokens. It never fails: what it cannot parse goes into Error nodes, and every token ends up in the tree.

Functionsยง

parse
Parses src into a lossless syntax tree.
parse_for_offset
Parses src, keeping full CST inside the function containing target_offset and flat BlockExprs elsewhere.