|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Node representing a while-loop. More...
#include <Compiler_AST.H>
Public Member Functions | |
| Compiler_While_Stmt (const Source_Span &kw={}, Compiler_Expr *cond=nullptr, Compiler_Stmt *stmt=nullptr) noexcept | |
| Constructs a while statement. | |
Public Member Functions inherited from Aleph::Compiler_Stmt | |
| Compiler_Stmt (const Compiler_Stmt_Kind k=Compiler_Stmt_Kind::Invalid, const Source_Span &sp={}) noexcept | |
| Constructs a statement 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 | |
| Source_Span | keyword_span |
Location of the while keyword. | |
| Compiler_Expr * | condition = nullptr |
| Condition evaluated before each iteration. | |
| Compiler_Stmt * | body = nullptr |
| Statement(s) executed repeatedly. | |
Public Attributes inherited from Aleph::Compiler_Stmt | |
| Compiler_Stmt_Kind | kind = Compiler_Stmt_Kind::Invalid |
| Specific statement type. | |
Public Attributes inherited from Aleph::Compiler_Ast_Node | |
| Source_Span | span |
| Source region covered by this node. | |
Node representing a while-loop.
Example: while (i < 10) { ... }.
Definition at line 992 of file Compiler_AST.H.
|
inlinenoexcept |
Constructs a while statement.
Definition at line 999 of file Compiler_AST.H.
| Compiler_Stmt* Aleph::Compiler_While_Stmt::body = nullptr |
Statement(s) executed repeatedly.
Definition at line 996 of file Compiler_AST.H.
| Compiler_Expr* Aleph::Compiler_While_Stmt::condition = nullptr |
Condition evaluated before each iteration.
Definition at line 995 of file Compiler_AST.H.
| Source_Span Aleph::Compiler_While_Stmt::keyword_span |
Location of the while keyword.
Definition at line 994 of file Compiler_AST.H.