Examples of HybridInterpreter


Examples of org.strategoxt.HybridInterpreter

   
    for (Error error : errors)
      log.log("error: line " + error.lineStart + " column " + error.columnStart + " to line " + error.lineEnd + " column " + error.columEnd + ":\n  " + error.msg, Log.ALWAYS);

   
    IStrategoTerm errorTree = STRCommands.assimilate("sugarj-analyze", res.getDesugaringsFile(), tuple, new HybridInterpreter());
   
    assert errorTree.getTermType() == IStrategoTerm.TUPLE && errorTree.getSubtermCount() == 4 :
      "error in sugarj-analyze, did not return tuple with 4 elements";
   
    IStrategoList semErrors = Tools.termAt(errorTree, 1);
View Full Code Here

Examples of org.strategoxt.HybridInterpreter

    this.baseLanguage = baseLang;
    this.baseProcessor = baseLang.createNewProcessor();
    this.currentlyProcessing = currentlyProcessing;
    this.driverResult = new Result(env.doGenerateFiles() ? null : env.getParseBin());
   
    baseProcessor.setInterpreter(new HybridInterpreter());
    baseProcessor.getInterpreter().addOperatorRegistry(new SugarJPrimitivesLibrary(this, environment, driverResult, monitor));

    try {     
      if (environment.getCacheDir() != null)
        FileCommands.createDir(environment.getCacheDir());
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.