creates a node in the syntax tree of type forNode More...
#include <forNode.h>
Public Member Functions | |
forNode () | |
constructor | |
std::string | __represent__ () |
(virtual) returns a string representing the current state of this forNode and it's syntax tree structure | |
![]() | |
tokenNode () | |
constructor | |
virtual std::string | __represent__ ()=0 |
(virtual) returns a string representing the current state of the syntax tree | |
Public Attributes | |
std::string | conditionaltype = "" |
conditional type whether word or number types | |
std::string | datatype = "" |
data type whether word or number types | |
std::shared_ptr< tokenNode > | condition = nullptr |
condition of this forNode | |
std::shared_ptr< tokenNode > | declaration = nullptr |
for creating or uses an existing variable as a start point | |
std::shared_ptr< tokenNode > | init_declaration = nullptr |
preserves the state of initial declaration to reset for loop | |
bool | decl_Var_Exists = false |
used to keep track of whether or not an initial declaration variable already existed beforehand | |
std::shared_ptr< tokenNode > | iteration = nullptr |
value to change the existing variable by | |
std::vector< expressionData > | statementsvect |
the statements vector this if node code block to execute if the condition is deemed true | |
![]() | |
std::string | nodeType = "None" |
used for directing execution in the syntax tree | |
creates a node in the syntax tree of type forNode