Package antlr.collections

Examples of antlr.collections.AST.initialize()


        AST t = astFactory.create(type,txt);
        if ( t != null && first != null) {
            // first copy details from first token
            t.initialize(first);
            // then ensure that type and txt are specific to this new node
            t.initialize(type,txt);
        }

        if ((t instanceof GroovySourceAST) && last != null) {
            GroovySourceAST node = (GroovySourceAST)t;
            node.setLast(last);
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 (FIELD_BINDING_VAR_ASSIGNMENT, "FIELD_BINDING_VAR_ASSIGNMENT");
        }
        patternVar(LT(1), "a valid variable name");
        astFactory.addASTChild(currentAST, returnAST);
        fieldBindingVarAssignment_AST = (AST)currentAST.root;
      }
View Full Code Here

    try {      // for error handling
      docCommentNewline();
      node_AST = (AST)returnAST;
      astFactory.addASTChild(currentAST, returnAST);
      if ( inputState.guessing==0 ) {
        node_AST.initialize(CALDOC_TEXT_LINE_BREAK, "CALDOC_TEXT_LINE_BREAK");
      }
      docCommentLineBreak_AST = (AST)currentAST.root;
    }
    catch (RecognitionException ex) {
      if (inputState.guessing==0) {
View Full Code Here

      node = LT(1);
      node_AST = astFactory.create(node);
      astFactory.makeASTRoot(currentAST, node_AST);
      match(CALDOC_INLINE_URL_TAG);
      if ( inputState.guessing==0 ) {
        node_AST.initialize(CALDOC_TEXT_URL, "CALDOC_TEXT_URL");
      }
      docCommentTextBlockWithoutInlineTags(node);
      astFactory.addASTChild(currentAST, returnAST);
      docCommentInlineBlockContentUrlTagAndContent_AST = (AST)currentAST.root;
    }
View Full Code Here

      node = LT(1);
      node_AST = astFactory.create(node);
      astFactory.makeASTRoot(currentAST, node_AST);
      match(CALDOC_INLINE_LINK_TAG);
      if ( inputState.guessing==0 ) {
        node_AST.initialize(CALDOC_TEXT_LINK, "CALDOC_TEXT_LINK");
      }
      {
      switch ( LA(1)) {
      case CALDOC_SEE_TAG_FUNCTION_CONTEXT:
      {
View Full Code Here

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

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

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

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

      node = LT(1);
      node_AST = astFactory.create(node);
      astFactory.makeASTRoot(currentAST, node_AST);
      match(CALDOC_INLINE_SUMMARY_TAG);
      if ( inputState.guessing==0 ) {
        node_AST.initialize(CALDOC_TEXT_SUMMARY, "CALDOC_TEXT_SUMMARY");
      }
      docCommentTextualContent();
      astFactory.addASTChild(currentAST, returnAST);
      docCommentInlineBlockContentSummaryTagAndContent_AST = (AST)currentAST.root;
    }
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.