|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Recursive-descent parser for the compiler-support MVP grammar. More...
Go to the source code of this file.
Classes | |
| struct | Aleph::Compiler_Parser_Options |
| Parser configuration knobs for the MVP grammar. More... | |
| class | Aleph::Compiler_Parser |
Recursive-descent parser that produces an AST in Compiler_Ast_Context. More... | |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
Recursive-descent parser for the compiler-support MVP grammar.
The parser builds the arena-backed AST defined in Compiler_AST.H using the lexer from Compiler_Lexer.H. It supports import declarations, function declarations, explicit type annotations, blocks, let, return, if, while, break, continue, expression statements, calls, unary operators, and precedence-climbing binary expressions.
Parse errors produce invalid nodes and, when available, diagnostics in the attached Diagnostic_Engine.
Definition in file Compiler_Parser.H.