Package aleGrammar

Examples of aleGrammar.AleFrontend


      variants.delete();
    }

    ///////////////////////////////////////////////////////////////
   
    AleFrontend grammar = new AleFrontend(alePath, AGEvaluatorSwipl.chainLoops, stripFloats);
    grammar.initFtl(!AGEvaluatorSwipl.chainLoops); //play with old alegen core
   
    AGEvaluatorSwipl ages = new AGEvaluatorSwipl(grammar.alegEval, grammar.ast, verbose);   
    String prologGrammar = ages.alegAstToSwiplAst();
   
    File prettyGrammar = new File(alePath);
View Full Code Here


   
  }
 
  public Schedule synthesize(String alePath, String outputDir, String resourceDir, boolean verbose, boolean isFixedChildOrder, boolean isExhaustive, int maxLen, boolean stripFloats) throws Exception {
   
    AleFrontend grammar = new AleFrontend(alePath, AGEvaluatorSwipl.chainLoops, stripFloats);
    grammar.initFtl(!AGEvaluatorSwipl.chainLoops); //play with old alegen core
   
    AGEvaluatorSwipl ages = new AGEvaluatorSwipl(grammar.alegEval, grammar.ast, verbose);   
    String prologGrammar = ages.alegAstToSwiplAst();
   
    File prettyGrammar = new File(alePath);
View Full Code Here

  }

 
  public static Schedule getSchedules (String resourceDir, String friendlyGrammarDir, String grammarName, String outputDir, boolean write, boolean isFixedOrder, boolean isExhaustive, boolean isSingle, int maxLen, boolean verbose) throws Exception {
    final String friendlyGrammar = friendlyGrammarDir + grammarName;
    AleFrontend grammar = new AleFrontend(friendlyGrammar, AGEvaluatorSwipl.chainLoops, false);
    grammar.initFtl(!AGEvaluatorSwipl.chainLoops);
    AGEvaluatorSwipl ages = new AGEvaluatorSwipl(grammar.alegEval, grammar.ast, write);
    String prologGrammar = ages.alegAstToSwiplAst();   
    //int r = new Double(Math.random() * 1000000).intValue() % 1000000;
    File prettyGrammar = new File(friendlyGrammar);
    String prologGrammarPath =
View Full Code Here

      variants.delete();
    }

    ///////////////////////////////////////////////////////////////
   
    AleFrontend grammar = new AleFrontend(alePath, AGEvaluatorSwipl.chainLoops, stripFloats);
    grammar.initFtl(!AGEvaluatorSwipl.chainLoops); //play with old alegen core
   
    String fHeaders = functionHeaders(grammar.ast);
   
    AGEvaluatorSwipl ages = new AGEvaluatorSwipl(grammar.alegEval, grammar.ast, verbose);   
    String prologGrammar = ages.alegAstToSwiplAst();
View Full Code Here

   
  }
 
  public Schedule synthesize(String alePath, String outputDir, String resourceDir, boolean verbose, boolean isFixedChildOrder, boolean isExhaustive, int maxLen, boolean stripFloats) throws Exception {
   
    AleFrontend grammar = new AleFrontend(alePath, AGEvaluatorSwipl.chainLoops, stripFloats);
    grammar.initFtl(!AGEvaluatorSwipl.chainLoops); //play with old alegen core
   
    AGEvaluatorSwipl ages = new AGEvaluatorSwipl(grammar.alegEval, grammar.ast, verbose);   
    String prologGrammar = ages.alegAstToSwiplAst();
   
    File prettyGrammar = new File(alePath);
View Full Code Here

   * @throws InvalidGrammarException
   * @throws RecognitionException
   * @throws IOException
   */
  public static void main(String[] args) throws InvalidGrammarException, IOException, RecognitionException {   
    AleFrontend f = new AleFrontend("/Users/lmeyerov/Research/parallelbrowser/bbbrowser/projects/attrib-gram-evaluator-swipl/Examples/sampleAdam.ale", false, false);       
        AttributeGrammar grm = new AttributeGrammar("binTree",
            "/Users/lmeyerov/Research/parallelbrowser/bbbrowser/projects/osqDemo/binTree/", "QtAleNode", "QtTree", f.ast.classes, f.ast.interfaces, false, false);
        grm.run(false);
  }
View Full Code Here

TOP

Related Classes of aleGrammar.AleFrontend

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.