Expand description
Implements Parser
for Erg. Parser
parses the source code to generate AST
.
The generated AST
s are guaranteed to be identical if the source code is identical.
However, identical AST
s may be generated even if the source code is (a bit) different.
Re-exports§
pub use parse::Parser;
pub use parse::ParserRunner;
pub use visitor::ASTVisitor;
Modules§
- ast
- defines
Expr
(Expression, the minimum executing unit of Erg). - build_
ast - convert
- desugar
- Desugaring syntax sugars.
- error
- defines
ParseError
and others. - lex
- defines and implements
Lexer
(Tokenizer). - parse
- implements
Parser
. - token
- defines
Token
(The minimum unit in the Erg source code that serves as input to the parser). - typespec
- visitor
Macros§
- debug_
call_ info - Display the name of the called function for debugging the parser
- debug_
exit_ info