public ParserGenerator(IRascalMonitor monitor, PrintWriter out, List<ClassLoader> loaders, IValueFactory factory, Configuration config) {
GlobalEnvironment heap = new GlobalEnvironment();
ModuleEnvironment scope = new ModuleEnvironment("___parsergenerator___", heap);
this.evaluator = new Evaluator(ValueFactoryFactory.getValueFactory(), out, out, scope,heap);
evaluator.addRascalSearchPathContributor(StandardLibraryContributor.getInstance()); this.evaluator.setBootstrapperProperty(true);
this.bridge = new JavaBridge(loaders, factory, config);
this.vf = factory;
monitor.startJob("Loading parser generator", 100, 139);
try {
evaluator.doImport(monitor, "lang::rascal::grammar::ParserGenerator");