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§
- parse
- Facade function for an undelimited
parse_block
. - parse_
2hex - parse_
ascii_ char_ name - parse_
block - This function parses the an optionally delimited block of WLambda statements.
- parse_
str_ backslash - parse_
unicode_ hex