Examples of invokeStrategyCLI()


Examples of org.strategoxt.lang.Context.invokeStrategyCLI()

   
    // Pack-sdf requires a fresh context each time, because it caches grammars, which leads to a heap overflow.
    Context sdfContext = org.strategoxt.tools.tools.init();
    try {
      sdfContext.setIOAgent(packSdfIOAgent);
      sdfContext.invokeStrategyCLI(main_pack_sdf_0_0.instance, "pack-sdf", cmd.toArray(new String[cmd.size()]));
    } catch(StrategoExit e) {
      if (e.getValue() != 0) {
        throw new RuntimeException(e);
      }
    }
View Full Code Here

Examples of org.strategoxt.lang.Context.invokeStrategyCLI()

    // Strj requires a fresh context each time.
    Context ctx = org.strategoxt.strj.strj.init();
    try {
      ctx.setIOAgent(strjIOAgent);
      ctx.invokeStrategyCLI(main_strj_0_0.instance, "strj", cmd.toArray(new String[cmd.size()]));
    }
    catch (StrategoExit e) {
      if (e.getValue() != 0)
        throw new StrategoException("STRJ failed", e);
    } finally {
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.