Package antlr.collections

Examples of antlr.collections.AST.initialize()


          dot = LT(1);
          dot_AST = astFactory.create(dot);
          astFactory.makeASTRoot(currentAST, dot_AST);
          match(DOT);
          if ( inputState.guessing==0 ) {
            dot_AST.initialize(HIERARCHICAL_MODULE_NAME, "HIERARCHICAL_MODULE_NAME");
          }
          cons();
          astFactory.addASTChild(currentAST, returnAST);
        }
        else {
View Full Code Here


      node = LT(1);
      node_AST = astFactory.create(node);
      astFactory.makeASTRoot(currentAST, node_AST);
      match(LITERAL_data);
      if ( inputState.guessing==0 ) {
        node_AST.initialize (FOREIGN_DATA_DECLARATION, "foreignData");
      }
      match(LITERAL_foreign);
      match(LITERAL_unsafe);
      match(LITERAL_import);
      match(LITERAL_jvm);
View Full Code Here

      node = LT(1);
      node_AST = astFactory.create(node);
      astFactory.makeASTRoot(currentAST, node_AST);
      match(LITERAL_data);
      if ( inputState.guessing==0 ) {
        node_AST.initialize (DATA_DECLARATION, "data");
      }
      simpleType(LT(1), "a type constructor");
      astFactory.addASTChild(currentAST, returnAST);
      match(EQUALS);
      dataDeclarationBody(LT(1), "a bar-separated list of data constructor definitions");
View Full Code Here

      node = LT(1);
      node_AST = astFactory.create(node);
      astFactory.makeASTRoot(currentAST, node_AST);
      match(LITERAL_class);
      if ( inputState.guessing==0 ) {
        node_AST.initialize (TYPE_CLASS_DEFN, "class");
      }
      classContextList(LT(1), "a class context");
      astFactory.addASTChild(currentAST, returnAST);
      typeClassName(LT(1), "a type class name");
      astFactory.addASTChild(currentAST, returnAST);
View Full Code Here

      node = LT(1);
      node_AST = astFactory.create(node);
      astFactory.makeASTRoot(currentAST, node_AST);
      match(LITERAL_primitive);
      if ( inputState.guessing==0 ) {
        node_AST.initialize (PRIMITIVE_FUNCTION_DECLARATION, "primitiveFunc");
      }
      accessModifier(LT(1), "an access modifier");
      astFactory.addASTChild(currentAST, returnAST);
      typeDeclaration(LT(1), "a type declaration for a primitive function");
      astFactory.addASTChild(currentAST, returnAST);
View Full Code Here

      node = LT(1);
      node_AST = astFactory.create(node);
      astFactory.makeASTRoot(currentAST, node_AST);
      match(LITERAL_foreign);
      if ( inputState.guessing==0 ) {
        node_AST.initialize (FOREIGN_FUNCTION_DECLARATION, "foreignFunction");
      }
      match(LITERAL_unsafe);
      match(LITERAL_import);
      match(LITERAL_jvm);
      externalName();
View Full Code Here

      node = LT(1);
      node_AST = astFactory.create(node);
      astFactory.makeASTRoot(currentAST, node_AST);
      match(COLONCOLON);
      if ( inputState.guessing==0 ) {
        node_AST.initialize (TYPE_DECLARATION, "::");
      }
      typeSignature(LT(1), "a valid type signature for a variable");
      astFactory.addASTChild(currentAST, returnAST);
      match(SEMICOLON);
      typeDeclaration_AST = (AST)currentAST.root;
View Full Code Here

        node = LT(1);
        node_AST = astFactory.create(node);
        astFactory.makeASTRoot(currentAST, node_AST);
        match(RARROW);
        if ( inputState.guessing==0 ) {
          node_AST.initialize (FUNCTION_TYPE_CONSTRUCTOR, "->");
        }
        type(LT(1), "a type application");
        astFactory.addASTChild(currentAST, returnAST);
        break;
      }
View Full Code Here

          selectDCFieldNode = LT(1);
          selectDCFieldNode_AST = astFactory.create(selectDCFieldNode);
          astFactory.makeASTRoot(currentAST, selectDCFieldNode_AST);
          match(DOT);
          if ( inputState.guessing==0 ) {
            selectDCFieldNode_AST.initialize (SELECT_DATA_CONSTRUCTOR_FIELD, "SELECT_DATA_CONSTRUCTOR_FIELD");
          }
          {
          boolean synPredMatched207 = false;
          if (((LA(1)==CONS_ID) && (LA(2)==DOT))) {
            int _m207 = mark();
View Full Code Here

          dot = LT(1);
          dot_AST = astFactory.create(dot);
          astFactory.makeASTRoot(currentAST, dot_AST);
          match(DOT);
          if ( inputState.guessing==0 ) {
            dot_AST.initialize(HIERARCHICAL_MODULE_NAME, "HIERARCHICAL_MODULE_NAME");
          }
          cons();
          astFactory.addASTChild(currentAST, returnAST);
        }
        else {
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.