|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Abstract base class for expression nodes. More...
#include <Compiler_AST.H>
Public Member Functions | |
| Compiler_Expr (const Compiler_Expr_Kind k=Compiler_Expr_Kind::Invalid, const Source_Span &sp={}) noexcept | |
| Constructs an expression base. | |
Public Member Functions inherited from Aleph::Compiler_Ast_Node | |
| Compiler_Ast_Node (const Source_Span &sp={}) noexcept | |
| Constructs a node with an optional span. | |
| virtual | ~Compiler_Ast_Node () noexcept=default |
| Virtual destructor to ensure proper cleanup of derived nodes. | |
Public Attributes | |
| Compiler_Expr_Kind | kind = Compiler_Expr_Kind::Invalid |
| Specific expression type. | |
Public Attributes inherited from Aleph::Compiler_Ast_Node | |
| Source_Span | span |
| Source region covered by this node. | |
Abstract base class for expression nodes.
Expressions always evaluate to a value (in the future, a typed value).
Definition at line 443 of file Compiler_AST.H.
|
inlinenoexcept |
Constructs an expression base.
Definition at line 448 of file Compiler_AST.H.
| Compiler_Expr_Kind Aleph::Compiler_Expr::kind = Compiler_Expr_Kind::Invalid |
Specific expression type.
Definition at line 445 of file Compiler_AST.H.
Referenced by Aleph::Compiler_Semantic_Analyzer::analyze_expr(), Aleph::Compiler_Typed_Semantic_Analyzer::analyze_expr(), Aleph::Compiler_Ast_Detail::dump_expr(), and Aleph::Compiler_HIR_Lowering::lower_expr().