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