|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Typed constant expression. More...
#include <Compiler_HIR_Model.H>
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. | |
Typed constant expression.
Definition at line 295 of file Compiler_HIR_Model.H.
|
inlinenoexcept |
Definition at line 302 of file Compiler_HIR_Model.H.
Decoded boolean value for Bool constants.
Definition at line 300 of file Compiler_HIR_Model.H.
| 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.
| std::string Aleph::Compiler_HIR_Constant_Expr::text |
Original or normalized constant spelling.
Definition at line 299 of file Compiler_HIR_Model.H.
Referenced by Aleph::Interpreter_Runtime::parse_char_literal(), Aleph::Interpreter_Runtime::parse_integer_literal(), and Aleph::Interpreter_Runtime::parse_string_literal().