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