Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Compiler_Invalid_Expr Struct Referencefinal

Placeholder node for expressions that failed to parse. More...

#include <Compiler_AST.H>

Inheritance diagram for Aleph::Compiler_Invalid_Expr:
[legend]
Collaboration diagram for Aleph::Compiler_Invalid_Expr:
[legend]

Public Member Functions

 Compiler_Invalid_Expr (const Source_Span &sp={}) noexcept
 Constructs an invalid expression sentinel.
 
- Public Member Functions inherited from Aleph::Compiler_Expr
 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.
 

Additional Inherited Members

- Public Attributes inherited from Aleph::Compiler_Expr
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.
 

Detailed Description

Placeholder node for expressions that failed to parse.

Allows the parser to continue despite local errors, preventing cascading diagnostics.

Definition at line 729 of file Compiler_AST.H.

Constructor & Destructor Documentation

◆ Compiler_Invalid_Expr()

Aleph::Compiler_Invalid_Expr::Compiler_Invalid_Expr ( const Source_Span &  sp = {})
inlineexplicitnoexcept

Constructs an invalid expression sentinel.

Definition at line 732 of file Compiler_AST.H.


The documentation for this struct was generated from the following file: