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

◆ reassignExistingVariable()

bool VariableNode::reassignExistingVariable ( std::shared_ptr< tokenNode token,
const std::string &  variablename,
const std::string &  stacktype,
const std::string &  appendtype 
)
static

reassigns new data to a variable in the stack

Parameters
tokenvariable
variablenamevariable name
stacktypethe stack to push it onto, whether number of word stack
appendtypeappend type of append data eg, '+=', '-=', '*=' etc
Returns
bool