Package aleGrammar.ALEParser

Examples of aleGrammar.ALEParser.ExtendedVertex


      if(cls == null) {
        return false;
      }
     
      ALEParser.ExtendedClass ec = ast.extendedClasses.get(cls);
      ExtendedVertex v = ec.extendedVertices.get(ftlName);
     
      if(v == null) {
        return false;
      } else {
        return v.isMaybeType;
View Full Code Here


      String propClean = prop.toLowerCase();           
      try {
        if (propClean.contains("_init") || propClean.contains("_last")) { //loop vars
          isParseData = false;
        } else {
          ExtendedVertex v = Generator.extendedGet(ast, cls, lhs.replace("$$", "").replace("$i", "").replace("$-", ""));         
          if (v.isInput) throw new InvalidGrammarException("Accessing parse data as lhs: " + cls.getName() + "::" + lhs);
          else isParseData = false;
        }
      } catch (InvalidGrammarException e) {
        e.printStackTrace();
View Full Code Here

 
  String cleanProp = prop.replace("$-", "").replace("$$", "").replace("$i", "").toLowerCase();
 
  try {
    //String checkProp = prop.replace("$i", "");
    ExtendedVertex v = Generator.extendedGet(ast, cls, lhs.replace("$-", "").replace("$$", "").replace("$i", ""));
      isParseData = v.isInput;
    } catch (InvalidGrammarException e) {
      isParseData = false;
//      String checkProp = prop.replace("$i", "");   
//      System.err.println("failed rhs parse data on " + lhs + " (checkProp: " + checkProp + ")");
View Full Code Here

  for (int i = 0; i < indentOut; i++) space += " ";
  res += "cout << \"" + space +  msg + ": \" << " + rhs + " << endl;\n";
  return res + "#endif //DEBUGY\n";
}
public String logStmtVar(int indentSrc, int indentOut, String msg, ALEParser ast, AGEval.Class cls, String rhs, String rhsAddress) throws InvalidGrammarException {
  ExtendedVertex v = Generator.lookupAttributeExtended(rhs, cls, ast);
  if (v == null) throw new InvalidGrammarException("logStmtVar cpp: could not find " + cls.getName() + "::" + rhs);
  boolean isMaybe = v.isMaybeType;
  boolean isString = v.strType.equals("string");

  String indent = "";
View Full Code Here

      "#include \"ParsingHelpers.h\"\n";
      return r;
    }
     
    public static String genField(ExtendedClass ec, String prop) {
      ExtendedVertex v = ec.extendedVertices.get(prop);
      String propType = v.strType;
      String transType = 
        (propType.equals("int") || propType.equals("time") || propType.equals("color") || propType.equals("px")) ? "int" :
        propType.equals("bool") ? "bool" :
        propType.equals("string") ? "const char *" :
View Full Code Here

      if(cls == null) {
        return false;
      }
     
      ALEParser.ExtendedClass ec = ast.extendedClasses.get(cls);
      ExtendedVertex v = ec.extendedVertices.get(ftlName);
     
      if(v == null) {
        return false;
      } else {
        return v.isMaybeType;
View Full Code Here

TOP

Related Classes of aleGrammar.ALEParser.ExtendedVertex

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.