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§
- Parse
Options - Options controlling parser behavior.
- Parse
Result - 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.