Package org.rascalmpl.interpreter.utils

Examples of org.rascalmpl.interpreter.utils.JavaBridge$JavaClasses


    ModuleEnvironment scope = new ModuleEnvironment("___parsergenerator___", heap);
    this.evaluator = new Evaluator(ValueFactoryFactory.getValueFactory(), out, out, scope,heap);
    this.evaluator.getConfiguration().setRascalJavaClassPathProperty(config.getRascalJavaClassPathProperty());
    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");
View Full Code Here


  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");
View Full Code Here

    this.typeDeclarator = new TypeDeclarationEvaluator(this);
    this.currentEnvt = scope;
    this.rootScope = scope;
    heap.addModule(scope);
    this.classLoaders = classLoaders;
    this.javaBridge = new JavaBridge(classLoaders, vf, config);
    this.rascalPathResolver = rascalPathResolver;
    this.resolverRegistry = rascalPathResolver.getRegistry();
    this.defStderr = stderr;
    this.defStdout = stdout;
    this.constructorDeclaredListeners = new HashMap<IConstructorDeclared,Object>();
View Full Code Here

    this.rootScope = scope;
    // TODO: this is probably not OK
    heap.addModule(scope);
    this.classLoaders = source.classLoaders;
    // TODO: the Java bridge is probably sharable if its methods are synchronized
    this.javaBridge = new JavaBridge(classLoaders, vf, config);
    this.rascalPathResolver = source.rascalPathResolver;
    this.resolverRegistry = source.resolverRegistry;
    this.defStderr = source.defStderr;
    this.defStdout = source.defStdout;
    this.constructorDeclaredListeners = new HashMap<IConstructorDeclared,Object>(source.constructorDeclaredListeners);
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.utils.JavaBridge$JavaClasses

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.