10#include "../tokenNode.h"
double value
holds the value(int or double) of this node
Definition NumberNode.h:35
std::string unary_op_token
symbol of the unary operator
Definition NumberNode.h:25
std::string __represent__()
(virtual) returns a string representing the current state of this NumberNode and it's syntax tree str...
Definition NumberNode.cpp:5
std::shared_ptr< tokenNode > unaryopdata
pointer to the unary operator data eg the 5 in -(5)
Definition NumberNode.h:30
NumberNode()
constructor
Definition NumberNode.cpp:3
bool isUnaryOperator
is used for testing if this node is a unary operator node eg: -5
Definition NumberNode.h:20
creates a node in the syntax tree of type NumberNode
Definition NumberNode.h:15
node used for creating abstract syntax tree
Definition tokenNode.h:15