creates a node in the syntax tree of type while More...
#include <whileNode.h>
Public Member Functions | |
whileNode () | |
constructor | |
std::string | __represent__ () |
(virtual) returns a string representing the current state of this whilenode 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 | |
const std::string | conditionaltype = "while" |
is used by interpreterr to determine the conditional type whether if, for or while | |
std::string | datatype |
is used by interpreterr to determine the condition's data type whether it is strings or numbers | |
std::shared_ptr< tokenNode > | condition = nullptr |
pointer to this while loops conditions abstract syntax tree | |
std::vector< expressionData > | statementsvect |
vector of this while loops statements and their datatypes to be executed | |
![]() | |
std::string | nodeType = "None" |
used for directing execution in the syntax tree | |
creates a node in the syntax tree of type while