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

◆ checkCondition()

bool Interpreter::checkCondition ( std::shared_ptr< tokenNode > &  TKNode,
const std::string &  datatype 
)
private

checks if the condition of a control flow is true from visit_controlflow() on for-loop, while-loop, if,else if statements

Parameters
TKNodea pointer to the condition being checked
datatypedatatype of the condition being checked whether word or number
Returns
bool