creates a node in the syntax tree of type operator More...
#include <OperatorNode.h>
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< tokenNode > | left = nullptr |
| left node in syntax tree | |
| std::shared_ptr< tokenNode > | right = nullptr |
| right node in syntax tree | |
| std::shared_ptr< tokenNode > | unaryopdata = 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 | |
creates a node in the syntax tree of type operator