Crate leo_parser
source ·Expand description
The parser to convert Leo code text into an [AST
] type.
This module contains the parse_ast()
method which calls the underlying parse()
method to create a new program ast.
§leo-parser
Re-exports§
pub use parser::*;
Modules§
- The parser to convert Leo code text into an
Program
AST type. - The tokenizer to convert Leo code text into tokens.
Constants§
- Represents all valid Leo keyword tokens. This differs from the ABNF grammar for the following reasons: Adding true and false to the keywords of the ABNF grammar makes the lexical grammar ambiguous, because true and false are also boolean literals, which are different tokens from keywords.
Functions§
- Creates a new AST from a given file path and source code text.