Examples of grammar_()


Examples of org.antlr.grammar.v3.ANTLRParser.grammar_()

    tokenBuffer = new CommonTokenStream(lexer);
    ANTLRParser parser = ANTLRParser.createParser(tokenBuffer);
    parser.setFileName(this.getFileName());
    ANTLRParser.grammar__return result = null;
    try {
      result = parser.grammar_(this);
    }
    catch (RecognitionException re) {
      ErrorManager.internalError("unexpected parser recognition error from "+fileName, re);
    }
View Full Code Here

Examples of org.antlr.grammar.v3.AssignTokenTypesWalker.grammar_()

    for (int i = 0; grammars!=null && i < grammars.size(); i++) {
      Grammar g = grammars.get(i);
      ttypesWalker.setTreeNodeStream(new CommonTreeNodeStream(g.getGrammarTree()));
      try {
        //System.out.println("    walking "+g.name);
        ttypesWalker.grammar_(g);
      }
      catch (RecognitionException re) {
        ErrorManager.error(ErrorManager.MSG_BAD_AST_STRUCTURE,
                   re);
      }
View Full Code Here

Examples of org.antlr.grammar.v3.AssignTokenTypesWalker.grammar_()

    for (int i = 0; grammars!=null && i < grammars.size(); i++) {
      Grammar g = (Grammar)grammars.get(i);
      ttypesWalker.setTreeNodeStream(new CommonTreeNodeStream(g.getGrammarTree()));
      try {
        //System.out.println("    walking "+g.name);
        ttypesWalker.grammar_(g);
      }
      catch (RecognitionException re) {
        ErrorManager.error(ErrorManager.MSG_BAD_AST_STRUCTURE,
                   re);
      }
View Full Code Here

Examples of org.antlr.grammar.v3.AssignTokenTypesWalker.grammar_()

    for (int i = 0; grammars!=null && i < grammars.size(); i++) {
      Grammar g = grammars.get(i);
      ttypesWalker.setTreeNodeStream(new CommonTreeNodeStream(g.getGrammarTree()));
      try {
        //System.out.println("    walking "+g.name);
        ttypesWalker.grammar_(g);
      }
      catch (RecognitionException re) {
        ErrorManager.error(ErrorManager.MSG_BAD_AST_STRUCTURE,
                   re);
      }
View Full Code Here

Examples of org.antlr.grammar.v3.CodeGenTreeWalker.grammar_()

    // Walk the AST holding the input grammar, this time generating code
    // Decisions are generated by using the precomputed DFAs
    // Fill in the various templates with data
    CodeGenTreeWalker gen = new CodeGenTreeWalker(new CommonTreeNodeStream(grammar.getGrammarTree()));
    try {
      gen.grammar_(
            grammar,
            recognizerST,
            outputFileST,
            headerFileST);
    }
View Full Code Here

Examples of org.antlr.grammar.v3.CodeGenTreeWalker.grammar_()

    // Walk the AST holding the input grammar, this time generating code
    // Decisions are generated by using the precomputed DFAs
    // Fill in the various templates with data
    CodeGenTreeWalker gen = new CodeGenTreeWalker(new CommonTreeNodeStream(grammar.getGrammarTree()));
    try {
      gen.grammar_(
            grammar,
            recognizerST,
            outputFileST,
            headerFileST);
    }
View Full Code Here

Examples of org.antlr.grammar.v3.CodeGenTreeWalker.grammar_()

    // Walk the AST holding the input grammar, this time generating code
    // Decisions are generated by using the precomputed DFAs
    // Fill in the various templates with data
    CodeGenTreeWalker gen = new CodeGenTreeWalker(new CommonTreeNodeStream(grammar.getGrammarTree()));
    try {
      gen.grammar_(
            grammar,
            recognizerST,
            outputFileST,
            headerFileST);
    }
View Full Code Here

Examples of org.antlr.grammar.v3.DefineGrammarItemsWalker.grammar_()

    // DEFINE RULES
    //System.out.println("### define "+name+" rules");
    DefineGrammarItemsWalker defineItemsWalker = new DefineGrammarItemsWalker(new CommonTreeNodeStream(getGrammarTree()));
    try {
      defineItemsWalker.grammar_(this);
    }
    catch (RecognitionException re) {
      ErrorManager.error(ErrorManager.MSG_BAD_AST_STRUCTURE,
                 re);
    }
View Full Code Here

Examples of org.antlr.grammar.v3.TreeToNFAConverter.grammar_()

    }

    CommonTreeNodeStream input = new CommonTreeNodeStream(getGrammarTree());
    TreeToNFAConverter nfaBuilder = new TreeToNFAConverter(input, this, nfa, factory);
    try {
      nfaBuilder.grammar_();
    }
    catch (RecognitionException re) {
      ErrorManager.error(ErrorManager.MSG_BAD_AST_STRUCTURE,
                 name,
                 re);
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.