topazc
AST::VarAsgnStmt Class Reference

Statement of assignment of variable. More...

#include <ast.hpp>

Inheritance diagram for AST::VarAsgnStmt:
Collaboration diagram for AST::VarAsgnStmt:

Public Member Functions

 VarAsgnStmt (std::string n, ExprPtr e, bool id, uint32_t l)
 ~VarAsgnStmt () override=default
Public Member Functions inherited from AST::Stmt
 Stmt (uint32_t l)
virtual ~Stmt ()=default

Public Attributes

std::string name
ExprPtr expr
bool is_deref
Public Attributes inherited from AST::Stmt
uint32_t line

Detailed Description

Statement of assignment of variable.

Definition at line 300 of file ast.hpp.

Constructor & Destructor Documentation

◆ VarAsgnStmt()

AST::VarAsgnStmt::VarAsgnStmt ( std::string n,
ExprPtr e,
bool id,
uint32_t l )
inline

Definition at line 306 of file ast.hpp.

Here is the call graph for this function:

◆ ~VarAsgnStmt()

AST::VarAsgnStmt::~VarAsgnStmt ( )
overridedefault

Member Data Documentation

◆ expr

ExprPtr AST::VarAsgnStmt::expr

New expression

Definition at line 303 of file ast.hpp.

◆ is_deref

bool AST::VarAsgnStmt::is_deref

Is dereference of pointer

Definition at line 304 of file ast.hpp.

◆ name

std::string AST::VarAsgnStmt::name

Variable name

Definition at line 302 of file ast.hpp.


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