Package aleGrammar.ALEParser

Examples of aleGrammar.ALEParser.ExtendedClass


      AGEvaluatorSwipl.Schedule sched,
      LoopRecoverer.Block block,
      HashMap<String, String> exprToCall, HashMap<String, String> exprPrinter,
      HashMap<AGEval.Class, String>  soFar) throws InvalidGrammarException {
 
    ExtendedClass cls2 = sched._ast.extendedClasses.get(cls);
     
    String res = "\n";
    for (String s : block.assignments) {
      if (!s.contains("_stepn")) continue;     
      String sClean = cls.getName().toLowerCase() + "_" + s.replace("_stepn", "_init");
View Full Code Here


      AGEvaluatorSwipl.Schedule sched,
      LoopRecoverer.Block block,     
      HashMap<String, String> exprToCall, HashMap<String, String> exprPrinter,
      HashMap<AGEval.Class, String>  soFar) throws InvalidGrammarException {
   
    ExtendedClass cls2 = sched._ast.extendedClasses.get(cls);
     

    String transfer = backend.openLastChild(cls, loopVar);   
    boolean hasAnyToCopy = false;
    for (String s : block.assignments) {
View Full Code Here

    System.err.println();
  }
  */
 
  String padding = inLoop ? "      " : "  ";
  ExtendedClass cls2 = sched._ast.extendedClasses.get(cls);
 
  //FIXME skip nullaries
  if (exprToCall.containsKey(exprName)) {
    boolean isP = isPhantom(exprName, cls2);
    String p = debug && !isP ? exprPrinter.get(exprName) : "";
View Full Code Here

  }
  public static ALEParser.ExtendedVertex extendedGet(ALEParser ast, AGEval.IFace clsRaw, String prop) throws InvalidGrammarException {
    String uProp = AGEvaluatorSwipl.attribName(prop).toLowerCase().replace("$$", "").replace("$-", "").replace("$i", "");
    //AGEval.IFace cls;
    String base = AGEvaluatorSwipl.attribBase(prop);
    ExtendedClass ec;
    if (base.equals("self")) {
      //cls = clsRaw;
      ec = ast.extendedClasses.get(clsRaw);
    } else {
      if (clsRaw instanceof AGEval.Class) {
View Full Code Here

      AGEvaluatorSwipl.Schedule sched, HashMap<AGEval.Class,
      ArrayList<String>> openLoops, HashMap<AGEval.Class, String>  soFar,
      HashMap<String, String> exprToCall, HashMap<String, String> exprPrinter) throws InvalidGrammarException {
    String res = "";
    //String loopVar = sched._ast.extendedClasses.get(cls).idToLoop.get(openLoops.get(cls).get(0).replace("_step", "").replace("_","@"));   
    ExtendedClass cls2 = sched._ast.extendedClasses.get(cls);
         
    res += backend.openLastChild(cls, loopVar);
    boolean hasAnyToCopy = false;
    if (!openLoops.containsKey(cls)) {
      String options = "";
View Full Code Here

  public void visitAction (Schedule schedule2, Term act,
      HashMap<AGEval.Class, ArrayList<String>> openLoopVars, HashMap<AGEval.Class, String>  visit,
      HashMap<String, String> exprToCall, HashMap<String, String> exprPrinter) throws InvalidGrammarException {
   
    AGEval.Class cls = schedule2.classMap.get(act.toTermArray()[0].toString());
    ExtendedClass cls2 = schedule2._ast.extendedClasses.get(cls);
    Term[] vertex = act.toTermArray()[1].toTermArray();
    String lhsVertex =
      ( vertex[0].toString().equals("self") ? "": (vertex[0].toString() + "@"))
      + vertex[1].toString();
    String exprName = cls.getName().toLowerCase() + "_" + lhsVertex.replace("@","_");
View Full Code Here

TOP

Related Classes of aleGrammar.ALEParser.ExtendedClass

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.