Skip to main content

Crate cjc_parser

Crate cjc_parser 

Source
Expand description

Pratt parser for CJC source code.

Convenience entry point: let (program, diags) = cjc_parser::parse_source(src);

Implements a Pratt (top-down operator precedence) parser that produces an AST from the token stream generated by cjc-lexer.

Structs§

Parser

Functions§

parse_source
Lex and parse a source string, returning the AST and combined diagnostics.