Expand description
Parsing entry points and tree-sitter facade types.
Structs§
- Parsed
Source - A source file plus its parse tree; the input to lowering and to the syntax-diagnostic pass.
- Syntax
Diagnostic - A parse-level problem (an
ERRORorMISSINGregion) with its span.
Enums§
- Parse
Error - Failure to produce a tree at all (as opposed to a recoverable
SyntaxDiagnostic). - Syntax
Diagnostic Kind - Whether the parser recovered by skipping input or by inserting a missing token.
Functions§
- parse_
source - Parses
textinto aParsedSource, collecting recoverable syntax diagnostics rather than failing on imperfect input.