Interpreter intp(source);
intp.ReadSource();
+ if (intp.PostponedDefinitions().size() > 0) {
+ for (vector<Interpreter::PostponedDefinition>::const_iterator i(intp.PostponedDefinitions().begin()), end(intp.PostponedDefinitions().end()); i != end; ++i) {
+ std::cerr << "missing definition of " << TypeDescription::Get(i->linkedType).TypeName() << " " << i->identifier << std::endl;
+ }
+ return 3;
+ }
+
int battleResId(TypeDescription::GetTypeId("BattleResources"));
int heroId(TypeDescription::GetTypeId("Hero"));
int itemId(TypeDescription::GetTypeId("Item"));
return 0;
} catch (Parser::Error &e) {
cerr << "parsing exception in file " << e.File() << " on line " << e.Line() << ": " << e.what() << endl;
- return 1;
+ return 2;
} catch (exception &e) {
cerr << "exception in main(): " << e.what() << endl;
return 1;