Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Compiler_Parser.H File Reference

Recursive-descent parser for the compiler-support MVP grammar. More...

#include <string>
#include <Compiler_AST.H>
#include <Compiler_Parser_Utils.H>
Include dependency graph for Compiler_Parser.H:
This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

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.