|
void | advance () |
| advances current_index by one in the tokensVect
|
|
std::shared_ptr< tokenNode > | functions () |
| generates a tree for functions
|
|
std::shared_ptr< tokenNode > | controlflow () |
| generates a tree for control flow such as if, for and while statements
|
|
std::shared_ptr< tokenNode > | variables () |
| generates a tree for variables
|
|
std::shared_ptr< tokenNode > | OR_logical_operator_expression () |
| generates a tree for the OR logical operator
|
|
std::shared_ptr< tokenNode > | AND_logical_operator_expression () |
| generates a tree for the AND logical operator
|
|
std::shared_ptr< tokenNode > | relational_operator_expression () |
| generates a tree for relations operators such as ==, >, >=, <, <=, !=
|
|
std::shared_ptr< tokenNode > | expression () |
| generates a tree for expressions for numbers such as +, -
|
|
std::shared_ptr< tokenNode > | term () |
| generates a tree for expressions for numbers such as *, /, ^, %
|
|
std::shared_ptr< tokenNode > | factor () |
| generates a a basic node for either a word type or a number type
|
|
std::shared_ptr< tokenNode > | getCorrectUnaryType (std::shared_ptr< NumberNode > &numbernode, const std::shared_ptr< OperatorNode > &operatornode, const std::string &operationtype, const std::string &nodetype) |
| creates a unary for a factor eg: -(<factor>) or +(<factor>)
|
|
std::string | determineAppendType (const int &tokentypenode) |
| determines append type between -=, +=, /=, ^=, %= depending on the enum mapping using the passed in argument tokentypenode
|
|
std::string | continueReadingData () |
| a continuation of the createVariable() function
|
|
std::shared_ptr< tokenNode > | getNUMBERVARIABLE () |
| creates a number variable
|
|
std::shared_ptr< tokenNode > | getWORDVARIABLE () |
| creates a word variable
|
|
std::shared_ptr< tokenNode > | createVariable (const std::string &var_DT) |
| beings creation of a variable and pushes variable onto the stack after creating it
|
|
std::shared_ptr< tokenNode > | getPRINTDATA () |
| a continuation of the createVariable() function
|
|
std::shared_ptr< tokenNode > | createifstatements () |
| starts creating if, else if and else statements
|
|
std::shared_ptr< tokenNode > | create__ifstatement () |
| creates an if statement
|
|
std::shared_ptr< tokenNode > | create__elseifstatements () |
| creates else if statements
|
|
std::shared_ptr< ifNode > | create__elsestatements () |
| creates an else statement
|
|
std::shared_ptr< tokenNode > | create_whilestatements () |
| creates a while statement
|
|
std::shared_ptr< tokenNode > | create__forloops () |
| creates a for loop statement
|
|
std::shared_ptr< tokenNode > | create__functions () |
| creates a function
|
|
std::shared_ptr< tokenNode > | attachFunctionArguments () |
| attaches function arguments to a function after a function call is made
|
|
std::shared_ptr< tokenNode > | create_nullVariable (const std::string &variabletype) |
| creates a null variable, with no data attached to it
|
|
std::shared_ptr< tokenNode > | getNumberNode (std::shared_ptr< tokenNode > &variablenode_data) |
| extracts a number node from a variable node
|
|
parses the current line of code after receiving from the lexer
- Author
- Michael