topazc
AST::UnaryExpr Class Reference

Unary expression container. More...

#include <ast.hpp>

Inheritance diagram for AST::UnaryExpr:
Collaboration diagram for AST::UnaryExpr:

Public Member Functions

 UnaryExpr (Token o, ExprPtr e, uint32_t l)
 ~UnaryExpr () override=default
Public Member Functions inherited from AST::Expr
 Expr (uint32_t l)
virtual ~Expr ()=default

Public Attributes

Token op
ExprPtr expr
Public Attributes inherited from AST::Expr
uint32_t line

Detailed Description

Unary expression container.

Is the container of unary expression (aka <operator> <operand>)

Definition at line 234 of file ast.hpp.

Constructor & Destructor Documentation

◆ UnaryExpr()

AST::UnaryExpr::UnaryExpr ( Token o,
ExprPtr e,
uint32_t l )
inline

Definition at line 239 of file ast.hpp.

Here is the call graph for this function:

◆ ~UnaryExpr()

AST::UnaryExpr::~UnaryExpr ( )
overridedefault

Member Data Documentation

◆ expr

ExprPtr AST::UnaryExpr::expr

Expression of operand

Definition at line 237 of file ast.hpp.

◆ op

Token AST::UnaryExpr::op

Unary operator (-, !)

Definition at line 236 of file ast.hpp.


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