Interpreter prototype alpha
c++ interpreter for make believe language
 
Loading...
Searching...
No Matches
forNode Class Reference

creates a node in the syntax tree of type forNode More...

#include <forNode.h>

Inheritance diagram for forNode:
tokenNode

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
 
- 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::string conditionaltype = ""
 conditional type whether word or number types
 
std::string datatype = ""
 data type whether word or number types
 
std::shared_ptr< tokenNodecondition = nullptr
 condition of this forNode
 
std::shared_ptr< tokenNodedeclaration = nullptr
 for creating or uses an existing variable as a start point
 
std::shared_ptr< tokenNodeinit_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< tokenNodeiteration = nullptr
 value to change the existing variable by
 
std::vector< expressionDatastatementsvect
 the statements vector this if node code block to execute if the condition is deemed true
 
- Public Attributes inherited from tokenNode
std::string nodeType = "None"
 used for directing execution in the syntax tree
 

Detailed Description

creates a node in the syntax tree of type forNode

Author
Michael

The documentation for this class was generated from the following files: