Expand description
The recursive-descent driver. Spec §3.
The parser never returns Err for a syntax error. It records a
diagnostic, wraps the offending range in an error node, and
resynchronises — because a frontend that stops at the first mistake
makes a large file take as many runs as it has mistakes.
Structs§
Functions§
- parse
- Parse a file.
- parse_
preprocessed - Parse a preprocessed stream.
- parse_
preprocessed_ with - Parse a preprocessed stream under a chosen dialect.
- parse_
with - Parse under a chosen dialect.