Phasor 2.2.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
Phasor::AST::BinaryExpr Struct Reference

Binary Expression Node. More...

#include <AST.hpp>

Inheritance diagram for Phasor::AST::BinaryExpr:
[legend]
Collaboration diagram for Phasor::AST::BinaryExpr:
[legend]

Public Member Functions

 BinaryExpr (std::unique_ptr< Expression > l, BinaryOp o, std::unique_ptr< Expression > r)
void print (int indent=0) const override
Public Member Functions inherited from Phasor::AST::Node
virtual ~Node ()=default

Public Attributes

std::unique_ptr< Expressionleft
BinaryOp op
std::unique_ptr< Expressionright

Detailed Description

Binary Expression Node.

Definition at line 222 of file AST.hpp.

Constructor & Destructor Documentation

◆ BinaryExpr()

Phasor::AST::BinaryExpr::BinaryExpr ( std::unique_ptr< Expression > l,
BinaryOp o,
std::unique_ptr< Expression > r )
inline

Definition at line 228 of file AST.hpp.

Member Function Documentation

◆ print()

void Phasor::AST::BinaryExpr::print ( int indent = 0) const
inlineoverridevirtual

Implements Phasor::AST::Node.

Definition at line 233 of file AST.hpp.

Member Data Documentation

◆ left

std::unique_ptr<Expression> Phasor::AST::BinaryExpr::left

Definition at line 224 of file AST.hpp.

◆ op

BinaryOp Phasor::AST::BinaryExpr::op

Definition at line 225 of file AST.hpp.

◆ right

std::unique_ptr<Expression> Phasor::AST::BinaryExpr::right

Definition at line 226 of file AST.hpp.


The documentation for this struct was generated from the following file: