Interpreter prototype alpha
c++ interpreter for make believe language
 
Loading...
Searching...
No Matches
tokenNode.h
Go to the documentation of this file.
1
8#ifndef TOKENNODE_H
9#define TOKENNODE_H
10#include "../Exceptions/Exceptions.h"
11
16public:
17
21 std::string nodeType = "None";
22
27 tokenNode();
28
34 virtual std::string __represent__() = 0;
35};
36
44 std::shared_ptr<tokenNode> expression;
45
49 std::string datatype;
50};
51
52#endif
std::string nodeType
used for directing execution in the syntax tree
Definition tokenNode.h:21
virtual std::string __represent__()=0
(virtual) returns a string representing the current state of the syntax tree
tokenNode()
constructor
Definition tokenNode.cpp:3
node used for creating abstract syntax tree
Definition tokenNode.h:15
std::shared_ptr< tokenNode > expression
this current lines statement/expression
Definition tokenNode.h:44
std::string datatype
determines whether the current statement is a string or int related statement
Definition tokenNode.h:49
expression of current line in control flow statements (if, while, for) and functions
Definition tokenNode.h:40