topazc
AST::BinaryExpr Class Reference

Binary expression container. More...

#include <ast.hpp>

Inheritance diagram for AST::BinaryExpr:
Collaboration diagram for AST::BinaryExpr:

Public Member Functions

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

Public Attributes

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

Detailed Description

Binary expression container.

Is the container of binary expression (aka <left_operand> <operator> <right_operand>)

Definition at line 219 of file ast.hpp.

Constructor & Destructor Documentation

◆ BinaryExpr()

AST::BinaryExpr::BinaryExpr ( Token o,
ExprPtr le,
ExprPtr re,
uint32_t l )
inline

Definition at line 225 of file ast.hpp.

Here is the call graph for this function:

◆ ~BinaryExpr()

AST::BinaryExpr::~BinaryExpr ( )
overridedefault

Member Data Documentation

◆ left_expr

ExprPtr AST::BinaryExpr::left_expr

Expression of left operand

Definition at line 222 of file ast.hpp.

◆ op

Token AST::BinaryExpr::op

Binary operator (+, -, *, /, &&, ||, !=, ==, >, >=, <, <=)

Definition at line 221 of file ast.hpp.

◆ right_expr

ExprPtr AST::BinaryExpr::right_expr

Expression of right operand

Definition at line 223 of file ast.hpp.


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