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

◆ getThisVariableobject()

std::shared_ptr< VariableNode > VariableNode::getThisVariableobject ( const std::string &  variablename,
const std::string &  stacktype 
)
static

returns a pointer to the variable with the name of the variablename in the correct stacktype whether it be the 'number' or 'word' stack

Parameters
variablenamevariable name
stacktypethe stack to push it onto, whether number of word stack
Returns
std::shared_ptr<VariableNode>