topazc
AST::Literal Class Reference

Base class of literal. More...

#include <ast.hpp>

Inheritance diagram for AST::Literal:
Collaboration diagram for AST::Literal:

Public Member Functions

 Literal (Type t, Value v, uint32_t l)
 ~Literal () override=default
Public Member Functions inherited from AST::Expr
 Expr (uint32_t l)
virtual ~Expr ()=default

Public Attributes

Type type
Value value
Public Attributes inherited from AST::Expr
uint32_t line

Detailed Description

Base class of literal.

Definition at line 133 of file ast.hpp.

Constructor & Destructor Documentation

◆ Literal()

AST::Literal::Literal ( Type t,
Value v,
uint32_t l )
inline

Definition at line 138 of file ast.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~Literal()

AST::Literal::~Literal ( )
overridedefault

Member Data Documentation

◆ type

Type AST::Literal::type

Type of literal

Definition at line 135 of file ast.hpp.

◆ value

Value AST::Literal::value

Value of literal

Definition at line 136 of file ast.hpp.


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