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

Node representing a named identifier reference. More...

#include <Compiler_AST.H>

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

Public Member Functions

 Compiler_Identifier_Expr (std::string value="", const Source_Span &sp={}) noexcept
 Constructs an identifier reference.
 
- 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.
 

Public Attributes

std::string name
 Name of the identifier.
 
Source_Span name_span
 Span covering only the name lexeme.
 
- 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

Node representing a named identifier reference.

Examples: x, myFunction, count.

Definition at line 741 of file Compiler_AST.H.

Constructor & Destructor Documentation

◆ Compiler_Identifier_Expr()

Aleph::Compiler_Identifier_Expr::Compiler_Identifier_Expr ( std::string  value = "",
const Source_Span &  sp = {} 
)
inlinenoexcept

Constructs an identifier reference.

Definition at line 747 of file Compiler_AST.H.

Member Data Documentation

◆ name

std::string Aleph::Compiler_Identifier_Expr::name

Name of the identifier.

Definition at line 743 of file Compiler_AST.H.

Referenced by Aleph::Compiler_Ast_Detail::dump_expr().

◆ name_span

Source_Span Aleph::Compiler_Identifier_Expr::name_span

Span covering only the name lexeme.

Definition at line 744 of file Compiler_AST.H.


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