int IdentifierExp::eval(EvalState & state) { if (!state.isDefined(name)) { cout << "VARIABLE NOT DEFINED" << endl; error(""); } return state.getValue(name); }
int IdentifierExp::eval(EvalState & state) { if (!state.isDefined(name)) error("VARIABLE NOT DEFINED"); return state.getValue(name); }
int IdentifierExp::eval(EvalState & state) { if (!state.isDefined(name)) error(name + " is undefined"); return state.getValue(name); }