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§
Constants§
- KEYWORD_
TOKENS - Represents all valid Leo keyword tokens.
This also includes the boolean literals
true
andfalse
, unlike the ABNF grammar, which classifies them as literals and not keywords. But for the purposes of our lexer implementation, it is fine to include the boolean literals in this list.
Functions§
- parse_
ast - Creates a new AST from a given file path and source code text.