Package antlr.collections

Examples of antlr.collections.AST.initialize()


      node = LT(1);
      node_AST = astFactory.create(node);
      astFactory.makeASTRoot(currentAST, node_AST);
      match(CALDOC_INLINE_CODE_TAG);
      if ( inputState.guessing==0 ) {
        node_AST.initialize(CALDOC_TEXT_CODE_BLOCK, "CALDOC_TEXT_CODE_BLOCK");
      }
      docCommentPreformattedBlock();
      astFactory.addASTChild(currentAST, returnAST);
      docCommentInlineBlockContentCodeTagAndContent_AST = (AST)currentAST.root;
    }
View Full Code Here


      node = LT(1);
      node_AST = astFactory.create(node);
      astFactory.makeASTRoot(currentAST, node_AST);
      match(CALDOC_INLINE_ORDERED_LIST_TAG);
      if ( inputState.guessing==0 ) {
        node_AST.initialize(CALDOC_TEXT_ORDERED_LIST, "CALDOC_TEXT_ORDERED_LIST");
      }
      {
      _loop332:
      do {
        if ((_tokenSet_129.member(LA(1)))) {
View Full Code Here

      node = LT(1);
      node_AST = astFactory.create(node);
      astFactory.makeASTRoot(currentAST, node_AST);
      match(CALDOC_INLINE_UNORDERED_LIST_TAG);
      if ( inputState.guessing==0 ) {
        node_AST.initialize(CALDOC_TEXT_UNORDERED_LIST, "CALDOC_TEXT_UNORDERED_LIST");
      }
      {
      _loop335:
      do {
        if ((_tokenSet_129.member(LA(1)))) {
View Full Code Here

        node = LT(1);
        node_AST = astFactory.create(node);
        astFactory.makeASTRoot(currentAST, node_AST);
        match(CALDOC_INLINE_ITEM_TAG);
        if ( inputState.guessing==0 ) {
          node_AST.initialize(CALDOC_TEXT_LIST_ITEM, "CALDOC_TEXT_LIST_ITEM");
        }
        docCommentTextualContent();
        astFactory.addASTChild(currentAST, returnAST);
        match(CALDOC_CLOSE_INLINE_TAG);
        docCommentListItem_AST = (AST)currentAST.root;
View Full Code Here

      node = LT(1);
      node_AST = astFactory.create(node);
      astFactory.makeASTRoot(currentAST, node_AST);
      match(EQUALS);
      if ( inputState.guessing==0 ) {
        node_AST.initialize (INSTANCE_METHOD, "INSTANCE_METHOD");
      }
      instanceMethodDefn(LT(1), "a function or method name");
      astFactory.addASTChild(currentAST, returnAST);
      match(SEMICOLON);
      instanceMethod_AST = (AST)currentAST.root;
View Full Code Here

      backslash = LT(1);
      backslash_AST = astFactory.create(backslash);
      astFactory.makeASTRoot(currentAST, backslash_AST);
      match(BACKSLASH);
      if ( inputState.guessing==0 ) {
        backslash_AST.initialize (LACKS_FIELD_CONTEXT, "LACKS_FIELD_CONTEXT");
      }
      fieldName(LT(1), "a valid record-field name");
      astFactory.addASTChild(currentAST, returnAST);
      lacksFieldContext_AST = (AST)currentAST.root;
    }
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 (FIELD_TYPE_ASSIGNMENT, "FIELD_TYPE_ASSIGNMENT");
      }
      type(LT(1), "a field type");
      astFactory.addASTChild(currentAST, returnAST);
      fieldTypeAssignment_AST = (AST)currentAST.root;
    }
View Full Code Here

        node = LT(1);
        node_AST = astFactory.create(node);
        astFactory.makeASTRoot(currentAST, node_AST);
        match(PLING);
        if ( inputState.guessing==0 ) {
          {node_AST.initialize (STRICT_ARG, "!");}
        }
        atomicType(contextToken, paraphrase);
        astFactory.addASTChild(currentAST, returnAST);
        }
        dataConstructorArgType_AST = (AST)currentAST.root;
View Full Code Here

        qualifiedVarNode = LT(1);
        qualifiedVarNode_AST = astFactory.create(qualifiedVarNode);
        astFactory.makeASTRoot(currentAST, qualifiedVarNode_AST);
        match(DOT);
        if ( inputState.guessing==0 ) {
          qualifiedVarNode_AST.initialize (QUALIFIED_VAR, "QUALIFIED_VAR");
        }
        var();
        astFactory.addASTChild(currentAST, returnAST);
        qualifiedVar_AST = (AST)currentAST.root;
        break;
View Full Code Here

      node = LT(1);
      node_AST = astFactory.create(node);
      astFactory.makeASTRoot(currentAST, node_AST);
      match(LITERAL_instance);
      if ( inputState.guessing==0 ) {
        node_AST.initialize (INSTANCE_DEFN, "instance");
      }
      instanceName(LT(1), "an instance name");
      astFactory.addASTChild(currentAST, returnAST);
      match(LITERAL_where);
      instanceMethodList(LT(1), "a list of instance method definitions");
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.