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

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

#include <functionNode.h>

Inheritance diagram for functionNode:
tokenNode

Public Member Functions

 functionNode ()
 
std::string __represent__ ()
 (virtual) returns a string representing the current state of the syntax tree
 
void attachArgAt (int &index, std::shared_ptr< tokenNode > value)
 
- 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
 

Static Public Member Functions

static void pushIntoFuncVector (std::shared_ptr< functionNode > token)
 
static bool alreadyExistingFunction (const std::string &toCheck)
 
static std::shared_ptr< functionNodegetThisFunction (const std::string &funcname)
 

Public Attributes

const int FUNC_ARG_MAX = 5
 
std::string functionName = ""
 
int functionArgsAmounts = 0
 
std::vector< expressionDataarguments
 
std::vector< expressionDatastatementsvect
 
- Public Attributes inherited from tokenNode
std::string nodeType = "None"
 used for directing execution in the syntax tree
 

Static Public Attributes

static std::vector< std::shared_ptr< functionNode > > stackFUNCvector
 

Detailed Description

creates a node in the syntax tree of type functionNode

Author
Michael

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