}
+const Interpreter::ParsedDefinition &Interpreter::GetDefinition(const string &identifier) const {
+ try {
+ return parsedDefinitions.at(identifier);
+ } catch (...) {
+ throw std::runtime_error("cannot find definition for " + identifier);
+ }
+}
+
+
void *Interpreter::GetObject(int typeId, const std::string &name) {
map<string, ParsedDefinition>::const_iterator i(parsedDefinitions.find(name));
if (i != parsedDefinitions.end()) {