Skip to main content

Crate compactp_parser

Crate compactp_parser 

Source
Expand description

Compact parser — produces a lossless CST and a list of diagnostics.

The parser is recursive-descent with marker-based AST construction (rowan), Pratt-style expression precedence handling, and explicit error recovery. The public surface is intentionally minimal: parse, parse_with, ParseOptions, and ParseResult. Walk the CST via the compactp_syntax types and the typed wrappers in compactp_ast.

Structs§

ParseOptions
Options controlling parser behavior.
ParseResult
The result of parsing Compact source code.

Functions§

parse
Parses Compact source code into a lossless concrete syntax tree plus a list of structured diagnostics.
parse_with
Parses Compact source code into a lossless CST using the supplied ParseOptions.