Skip to main content

Module parse

Module parse 

Source
Expand description

Parsing entry points and tree-sitter facade types.

Structs§

ParsedSource
A source file plus its parse tree; the input to lowering and to the syntax-diagnostic pass.
SyntaxDiagnostic
A parse-level problem (an ERROR or MISSING region) with its span.

Enums§

ParseError
Failure to produce a tree at all (as opposed to a recoverable SyntaxDiagnostic).
SyntaxDiagnosticKind
Whether the parser recovered by skipping input or by inserting a missing token.

Functions§

parse_source
Parses text into a ParsedSource, collecting recoverable syntax diagnostics rather than failing on imperfect input.