Skip to main content

Module parser

Module parser 

Source
Expand description

The parser takes a stream of [Token]s from the Lexer, and turns them into [cl_ast::ast] nodes.

Re-exports§

pub use error::EOF;
pub use error::PResult;
pub use error::PResultExt;
pub use error::ParseError;
pub use error::no_eof;

Modules§

error
expr
Conlang’s Expression parser.
pat
Conlang’s Pattern parser.

Structs§

Parser
Handles stateful extraction from a Lexer, with single-[Token] lookahead.

Traits§

Parse
Parse an expression from a Parser’s token stream at a given precedence level