Expand description

This is the grammar parser for WLambda.

It produces an AST to be further transformed by wlambda::compiler::compile() into an executable form of the program.

The parser is a bit crufty as I did not go the extra step of writing a lexer/tokenizer. One goal of WLambda is to have a rather uncomplicated and small implementation, and I hope I could achieve that here.

The syntax of WLambda is in part also to make it a bit easier to parse in this hand written parser.

Re-exports

pub use state::State;
pub use state::ParseValueError;
pub use state::ParseNumberError;
pub use state::ParseError;
pub use state::ParseErrorKind;

Modules

Enums

Functions

Facade function for an undelimited parse_block.

This function parses the an optionally delimited block of WLambda statements.