示例#1
0
int IdentifierExp::eval(EvalState & state) {
	if (!state.isDefined(name)) {
		cout << "VARIABLE NOT DEFINED" << endl;
		error("");
	}
	return state.getValue(name);
}
示例#2
0
文件: exp.cpp 项目: kevin5396/SE116
int IdentifierExp::eval(EvalState & state) {
   if (!state.isDefined(name)) error("VARIABLE NOT DEFINED");
   return state.getValue(name);
}
示例#3
0
文件: exp.cpp 项目: mariolew/CS106B
int IdentifierExp::eval(EvalState & state) {
   if (!state.isDefined(name)) error(name + " is undefined");
   return state.getValue(name);
}