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

Typed constant expression. More...

#include <Compiler_HIR_Model.H>

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

Public Member Functions

 Compiler_HIR_Constant_Expr (const Compiler_HIR_Constant_Kind k=Compiler_HIR_Constant_Kind::Unit, const Compiler_Type_Id ty=0, std::string value="", const Source_Span &sp={}, const bool b=false) noexcept
 
- Public Member Functions inherited from Aleph::Compiler_HIR_Expr
 Compiler_HIR_Expr (const Compiler_HIR_Expr_Kind k=Compiler_HIR_Expr_Kind::Invalid, const Compiler_Type_Id ty=0, const Source_Span &sp={}) noexcept
 
- Public Member Functions inherited from Aleph::Compiler_HIR_Node
 Compiler_HIR_Node (const Source_Span &sp={}) noexcept
 

Public Attributes

Compiler_HIR_Constant_Kind constant_kind = Compiler_HIR_Constant_Kind::Unit
 Constant category.
 
std::string text
 Original or normalized constant spelling.
 
bool bool_value = false
 Decoded boolean value for Bool constants.
 
- Public Attributes inherited from Aleph::Compiler_HIR_Expr
Compiler_HIR_Expr_Kind kind = Compiler_HIR_Expr_Kind::Invalid
 Runtime node kind.
 
Compiler_Type_Id type_id = 0
 Inferred or resolved type.
 
- Public Attributes inherited from Aleph::Compiler_HIR_Node
Source_Span span
 Source region associated with the HIR node.
 

Detailed Description

Typed constant expression.

Definition at line 295 of file Compiler_HIR_Model.H.

Constructor & Destructor Documentation

◆ Compiler_HIR_Constant_Expr()

Aleph::Compiler_HIR_Constant_Expr::Compiler_HIR_Constant_Expr ( const Compiler_HIR_Constant_Kind  k = Compiler_HIR_Constant_Kind::Unit,
const Compiler_Type_Id  ty = 0,
std::string  value = "",
const Source_Span &  sp = {},
const bool  b = false 
)
inlinenoexcept

Definition at line 302 of file Compiler_HIR_Model.H.

Member Data Documentation

◆ bool_value

bool Aleph::Compiler_HIR_Constant_Expr::bool_value = false

Decoded boolean value for Bool constants.

Definition at line 300 of file Compiler_HIR_Model.H.

◆ constant_kind

Compiler_HIR_Constant_Kind Aleph::Compiler_HIR_Constant_Expr::constant_kind = Compiler_HIR_Constant_Kind::Unit

Constant category.

Definition at line 297 of file Compiler_HIR_Model.H.

◆ text

std::string Aleph::Compiler_HIR_Constant_Expr::text

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