Examples of ParserGenerator


Examples of org.rascalmpl.parser.ParserGenerator

  }
 
  public IValue diagnoseAmbiguity(IRascalMonitor monitor, IConstructor parseTree) {
    IRascalMonitor old = setMonitor(monitor);
    try {
      ParserGenerator pgen = getParserGenerator();
      return pgen.diagnoseAmbiguity(parseTree);
    }
    finally {
      setMonitor(old);
    }
  }
View Full Code Here

Examples of org.rascalmpl.parser.ParserGenerator

  }
 
  public IConstructor getExpandedGrammar(IRascalMonitor monitor, URI uri) {
    IRascalMonitor old = setMonitor(monitor);
    try {
      ParserGenerator pgen = getParserGenerator();
      String main = uri.getAuthority();
      ModuleEnvironment env = getHeap().getModule(main);
      monitor.startJob("Expanding Grammar");
      return pgen.getExpandedGrammar(monitor, main, env.getSyntaxDefinition());
    }
    finally {
      monitor.endJob(true);
      setMonitor(old);
    }
View Full Code Here

Examples of org.rascalmpl.parser.ParserGenerator

  }
 
  public ISet getNestingRestrictions(IRascalMonitor monitor, IConstructor g) {
    IRascalMonitor old = setMonitor(monitor);
    try {
      ParserGenerator pgen = getParserGenerator();
      return pgen.getNestingRestrictions(monitor, g);
    }
    finally {
      setMonitor(old);
    }
  }
View Full Code Here

Examples of org.rascalmpl.parser.ParserGenerator

    startJob("Loading parser generator", 40);
    if(parserGenerator == null ){
      if (isBootstrapper()) {
        throw new ImplementationError("Cyclic bootstrapping is occurring, probably because a module in the bootstrap dependencies is using the concrete syntax feature.");
      }
      parserGenerator = new ParserGenerator(getMonitor(), getStdErr(), classLoaders, getValueFactory(), config);
    }
    endJob(true);
    return parserGenerator;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.