10#include "../tokenNode.h"
std::shared_ptr< tokenNode > init_declaration
preserves the state of initial declaration to reset for loop
Definition forNode.h:53
std::shared_ptr< tokenNode > condition
condition of this forNode
Definition forNode.h:43
std::shared_ptr< tokenNode > iteration
value to change the existing variable by
Definition forNode.h:63
std::shared_ptr< tokenNode > declaration
for creating or uses an existing variable as a start point
Definition forNode.h:48
std::string datatype
data type whether word or number types
Definition forNode.h:38
std::string __represent__()
(virtual) returns a string representing the current state of this forNode and it's syntax tree struct...
Definition forNode.cpp:5
bool decl_Var_Exists
used to keep track of whether or not an initial declaration variable already existed beforehand
Definition forNode.h:58
std::string conditionaltype
conditional type whether word or number types
Definition forNode.h:33
forNode()
constructor
Definition forNode.cpp:3
std::vector< expressionData > statementsvect
the statements vector this if node code block to execute if the condition is deemed true
Definition forNode.h:68
creates a node in the syntax tree of type forNode
Definition forNode.h:15
node used for creating abstract syntax tree
Definition tokenNode.h:15