topazc
AST::Value Struct Reference

Structure for describing the value. More...

#include <ast.hpp>

Public Member Functions

 Value (bool v)
 Value (char8_t v)
 Value (int16_t v)
 Value (int32_t v)
 Value (int64_t v)
 Value (float_t v)
 Value (double_t v)
 Value (std::string v)

Public Attributes

std::variant< bool, char8_t, int16_t, int32_t, int64_t, float_t, double_t, std::string > value

Detailed Description

Structure for describing the value.

Definition at line 71 of file ast.hpp.

Constructor & Destructor Documentation

◆ Value() [1/8]

AST::Value::Value ( bool v)
inline

Definition at line 74 of file ast.hpp.

◆ Value() [2/8]

AST::Value::Value ( char8_t v)
inline

Definition at line 75 of file ast.hpp.

◆ Value() [3/8]

AST::Value::Value ( int16_t v)
inline

Definition at line 76 of file ast.hpp.

◆ Value() [4/8]

AST::Value::Value ( int32_t v)
inline

Definition at line 77 of file ast.hpp.

◆ Value() [5/8]

AST::Value::Value ( int64_t v)
inline

Definition at line 78 of file ast.hpp.

◆ Value() [6/8]

AST::Value::Value ( float_t v)
inline

Definition at line 79 of file ast.hpp.

◆ Value() [7/8]

AST::Value::Value ( double_t v)
inline

Definition at line 80 of file ast.hpp.

◆ Value() [8/8]

AST::Value::Value ( std::string v)
inline

Definition at line 81 of file ast.hpp.

Member Data Documentation

◆ value

std::variant<bool, char8_t, int16_t, int32_t, int64_t, float_t, double_t, std::string> AST::Value::value

Value as variant between char, short, int, long, float, double, bool and string

Definition at line 72 of file ast.hpp.


The documentation for this struct was generated from the following file:
  • /mnt/disk_ext4_0/topazlang/include/parser/ast.hpp