Module syntax

Source
Expand description

Syntax parsing and lexer re-exports.

Modules§

ast
Frontend AST re-exports used by the parser and downstream stages.
syntax
Parser and syntax helpers re-exported under the historic syntax path.

Structs§

FileId
Identifier for one source file tracked by the frontend.
SourceLocation
Concrete source location in a file.

Enums§

SyntaxError
Parser error reported while lexing or parsing source text.

Functions§

parse_program
Parse a source string into a frontend program AST.
parse_program_cst
Parse a source string and build a CST view from the resulting AST.
parse_program_with_file_id
Parse a source string into a frontend program AST with a concrete file id.