Interpreter prototype alpha
c++ interpreter for make believe language
 
Loading...
Searching...
No Matches
OperatorNode Class Reference

creates a node in the syntax tree of type operator More...

#include <OperatorNode.h>

Inheritance diagram for OperatorNode:
tokenNode

Public Member Functions

 OperatorNode ()
 constructor
 
std::string __represent__ ()
 (virtual) returns a string representing the current state of this whilenode and it's syntax tree structure
 
- Public Member Functions inherited from tokenNode
 tokenNode ()
 constructor
 
virtual std::string __represent__ ()=0
 (virtual) returns a string representing the current state of the syntax tree
 

Public Attributes

std::shared_ptr< tokenNodeleft = nullptr
 left node in syntax tree
 
std::shared_ptr< tokenNoderight = nullptr
 right node in syntax tree
 
std::shared_ptr< tokenNodeunaryopdata = nullptr
 pointer to unary operator eg: -5
 
std::string op_token = ""
 operator symbol/token
 
bool isUnaryOperator = false
 use to verify if this node has a unary operator eg -5 or not like 5
 
std::string unary_op_token = ""
 unary operator symbol/token
 
- Public Attributes inherited from tokenNode
std::string nodeType = "None"
 used for directing execution in the syntax tree
 

Detailed Description

creates a node in the syntax tree of type operator

Author
Michael

The documentation for this class was generated from the following files: