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

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

#include <whileNode.h>

Inheritance diagram for whileNode:
tokenNode

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
 
- 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

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< tokenNodecondition = nullptr
 pointer to this while loops conditions abstract syntax tree
 
std::vector< expressionDatastatementsvect
 vector of this while loops statements and their datatypes to be executed
 
- 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 while


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