IString classString = (IString) evaluator.call(monitor, "generateMetaParser", vf.string(packageName), vf.string("$Rascal_" + normName), vf.string(packageName + "." + normName), grammar);
debugOutput(classString.getValue(), System.getProperty("java.io.tmpdir") + "/metaParser.java");
monitor.event("compiling generated java code: " + name, 10);
return bridge.compileJava(loc, packageName + ".$Rascal_" + normName, objectParser.getClass(), classString.getValue());
} catch (ClassCastException e) {
throw new ImplementationError("meta parser generator:" + e.getMessage(), e);
} catch (Throw e) {
throw new ImplementationError("meta parser generator: " + e.getMessage() + e.getTrace());
}
}