antlr
Class ANTLRParser

java.lang.Object
  |
  +--antlr.Parser
        |
        +--antlr.LLkParser
              |
              +--antlr.ANTLRParser
All Implemented Interfaces:
ANTLRTokenTypes

public class ANTLRParser
extends LLkParser
implements ANTLRTokenTypes

Untamed:


Field Summary
static String[] _tokenNames
          Enabled:
static BitSet _tokenSet_0
          Enabled:
private static long[] _tokenSet_0_data_
           
static BitSet _tokenSet_1
          Enabled:
private static long[] _tokenSet_1_data_
           
static BitSet _tokenSet_10
          Enabled:
private static long[] _tokenSet_10_data_
           
static BitSet _tokenSet_11
          Enabled:
private static long[] _tokenSet_11_data_
           
static BitSet _tokenSet_2
          Enabled:
private static long[] _tokenSet_2_data_
           
static BitSet _tokenSet_3
          Enabled:
private static long[] _tokenSet_3_data_
           
static BitSet _tokenSet_4
          Enabled:
private static long[] _tokenSet_4_data_
           
static BitSet _tokenSet_5
          Enabled:
private static long[] _tokenSet_5_data_
           
static BitSet _tokenSet_6
          Enabled:
private static long[] _tokenSet_6_data_
           
static BitSet _tokenSet_7
          Enabled:
private static long[] _tokenSet_7_data_
           
static BitSet _tokenSet_8
          Enabled:
private static long[] _tokenSet_8_data_
           
static BitSet _tokenSet_9
          Enabled:
private static long[] _tokenSet_9_data_
           
(package private)  ANTLRGrammarParseBehavior behavior
           
protected  int blockNesting
           
private static boolean DEBUG_PARSER
           
(package private)  Tool tool
           
 
Fields inherited from class antlr.LLkParser
k
 
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, traceDepth
 
Fields inherited from interface antlr.ANTLRTokenTypes
ACTION, ARG_ACTION, ASSIGN, BANG, CARET, CHAR_LITERAL, CLOSE_ELEMENT_OPTION, COLON, COMMA, COMMENT, DIGIT, DOC_COMMENT, EOF, ESC, IMPLIES, INT, INTERNAL_RULE_REF, LITERAL_catch, LITERAL_charVocabulary, LITERAL_class, LITERAL_exception, LITERAL_extends, LITERAL_header, LITERAL_lexclass, LITERAL_Lexer, LITERAL_options, LITERAL_Parser, LITERAL_private, LITERAL_protected, LITERAL_public, LITERAL_returns, LITERAL_throws, LITERAL_tokens, LITERAL_TreeParser, LPAREN, ML_COMMENT, NESTED_ACTION, NESTED_ARG_ACTION, NOT_OP, NOT_USEFUL, NULL_TREE_LOOKAHEAD, OPEN_ELEMENT_OPTION, OPTIONS, OR, PLUS, QUESTION, RANGE, RCURLY, RPAREN, RULE_REF, SEMI, SEMPRED, SL_COMMENT, STAR, STRING_LITERAL, TOKEN_REF, TOKENS, TREE_BEGIN, VOCAB, WILDCARD, WS, WS_LOOP, WS_OPT, XDIGIT
 
Constructor Summary
  ANTLRParser(ParserSharedInputState state)
          Enabled:
  ANTLRParser(TokenBuffer tokenBuf)
          Enabled:
  ANTLRParser(TokenBuffer tokenBuf, ANTLRGrammarParseBehavior behavior_, Tool tool_)
          Enabled:
protected ANTLRParser(TokenBuffer tokenBuf, int k)
           
  ANTLRParser(TokenStream lexer)
          Enabled:
protected ANTLRParser(TokenStream lexer, int k)
           
 
Method Summary
 void alternative()
          Enabled:
 int ast_type_spec()
          Enabled:
 void block()
          Enabled:
 BitSet charSet()
          Enabled:
private  void checkForMissingEndRule(Token label)
           
 void classDef()
          Enabled:
 void ebnf(Token label, boolean not)
          Enabled:
 void element()
          Enabled:
 void elementNoOptionSpec()
          Enabled:
 void elementOptionSpec()
          Enabled:
 void exceptionGroup()
          Enabled:
 void exceptionHandler()
          Enabled:
 void exceptionSpec()
          Enabled:
 void exceptionSpecNoLabel()
          Enabled:
 void fileOptionsSpec()
          Enabled:
 void grammar()
          Enabled:
 Token id()
          Enabled:
private  boolean lastInRule()
           
 void lexerOptionsSpec()
          Enabled:
 void lexerSpec(String doc)
          Enabled:
 void notTerminal(Token label)
          Enabled:
 Token optionValue()
          Enabled:
 void parserOptionsSpec()
          Enabled:
 void parserSpec(String doc)
          Enabled:
 Token qualifiedID()
          Enabled: Match a.b.c.d qualified ids; WILDCARD here is overloaded as id separator; that is, I need a reference to the '.' token.
 void range(Token label)
          Enabled:
 void rootNode()
          Enabled:
 void rule()
          Enabled:
 void ruleOptionsSpec()
          Enabled:
 void rules()
          Enabled:
 BitSet setBlockElement()
          Enabled:
 void subruleOptionsSpec()
          Enabled:
 String superClass()
          Enabled:
 void terminal(Token label)
          Enabled:
 void throwsSpec()
          Enabled:
 void tokensSpec()
          Enabled:
 void tokensSpecOptions(Token t)
          Enabled:
 void tree()
          Enabled:
 void treeParserOptionsSpec()
          Enabled:
 void treeParserSpec(String doc)
          Enabled:
 
Methods inherited from class antlr.LLkParser
consume, LA, LT, traceIn, traceOut
 
Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, isDebugMode, mark, match, match, matchNot, panic, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG_PARSER

private static final boolean DEBUG_PARSER

behavior

ANTLRGrammarParseBehavior behavior

tool

Tool tool

blockNesting

protected int blockNesting

_tokenNames

public static final String[] _tokenNames
Enabled:


_tokenSet_0_data_

private static final long[] _tokenSet_0_data_

_tokenSet_0

public static final BitSet _tokenSet_0
Enabled:


_tokenSet_1_data_

private static final long[] _tokenSet_1_data_

_tokenSet_1

public static final BitSet _tokenSet_1
Enabled:


_tokenSet_2_data_

private static final long[] _tokenSet_2_data_

_tokenSet_2

public static final BitSet _tokenSet_2
Enabled:


_tokenSet_3_data_

private static final long[] _tokenSet_3_data_

_tokenSet_3

public static final BitSet _tokenSet_3
Enabled:


_tokenSet_4_data_

private static final long[] _tokenSet_4_data_

_tokenSet_4

public static final BitSet _tokenSet_4
Enabled:


_tokenSet_5_data_

private static final long[] _tokenSet_5_data_

_tokenSet_5

public static final BitSet _tokenSet_5
Enabled:


_tokenSet_6_data_

private static final long[] _tokenSet_6_data_

_tokenSet_6

public static final BitSet _tokenSet_6
Enabled:


_tokenSet_7_data_

private static final long[] _tokenSet_7_data_

_tokenSet_7

public static final BitSet _tokenSet_7
Enabled:


_tokenSet_8_data_

private static final long[] _tokenSet_8_data_

_tokenSet_8

public static final BitSet _tokenSet_8
Enabled:


_tokenSet_9_data_

private static final long[] _tokenSet_9_data_

_tokenSet_9

public static final BitSet _tokenSet_9
Enabled:


_tokenSet_10_data_

private static final long[] _tokenSet_10_data_

_tokenSet_10

public static final BitSet _tokenSet_10
Enabled:


_tokenSet_11_data_

private static final long[] _tokenSet_11_data_

_tokenSet_11

public static final BitSet _tokenSet_11
Enabled:

Constructor Detail

ANTLRParser

public ANTLRParser(TokenBuffer tokenBuf,
                   ANTLRGrammarParseBehavior behavior_,
                   Tool tool_)
Enabled:


ANTLRParser

protected ANTLRParser(TokenBuffer tokenBuf,
                      int k)

ANTLRParser

public ANTLRParser(TokenBuffer tokenBuf)
Enabled:


ANTLRParser

protected ANTLRParser(TokenStream lexer,
                      int k)

ANTLRParser

public ANTLRParser(TokenStream lexer)
Enabled:


ANTLRParser

public ANTLRParser(ParserSharedInputState state)
Enabled:

Method Detail

lastInRule

private boolean lastInRule()
                    throws TokenStreamException
TokenStreamException

checkForMissingEndRule

private void checkForMissingEndRule(Token label)

grammar

public final void grammar()
                   throws RecognitionException,
                          TokenStreamException
Enabled:

RecognitionException
TokenStreamException

fileOptionsSpec

public final void fileOptionsSpec()
                           throws RecognitionException,
                                  TokenStreamException
Enabled:

RecognitionException
TokenStreamException

classDef

public final void classDef()
                    throws RecognitionException,
                           TokenStreamException
Enabled:

RecognitionException
TokenStreamException

id

public final Token id()
               throws RecognitionException,
                      TokenStreamException
Enabled:

RecognitionException
TokenStreamException

lexerSpec

public final void lexerSpec(String doc)
                     throws RecognitionException,
                            TokenStreamException
Enabled:

RecognitionException
TokenStreamException

treeParserSpec

public final void treeParserSpec(String doc)
                          throws RecognitionException,
                                 TokenStreamException
Enabled:

RecognitionException
TokenStreamException

parserSpec

public final void parserSpec(String doc)
                      throws RecognitionException,
                             TokenStreamException
Enabled:

RecognitionException
TokenStreamException

rules

public final void rules()
                 throws RecognitionException,
                        TokenStreamException
Enabled:

RecognitionException
TokenStreamException

optionValue

public final Token optionValue()
                        throws RecognitionException,
                               TokenStreamException
Enabled:

RecognitionException
TokenStreamException

parserOptionsSpec

public final void parserOptionsSpec()
                             throws RecognitionException,
                                    TokenStreamException
Enabled:

RecognitionException
TokenStreamException

treeParserOptionsSpec

public final void treeParserOptionsSpec()
                                 throws RecognitionException,
                                        TokenStreamException
Enabled:

RecognitionException
TokenStreamException

lexerOptionsSpec

public final void lexerOptionsSpec()
                            throws RecognitionException,
                                   TokenStreamException
Enabled:

RecognitionException
TokenStreamException

charSet

public final BitSet charSet()
                     throws RecognitionException,
                            TokenStreamException
Enabled:

RecognitionException
TokenStreamException

subruleOptionsSpec

public final void subruleOptionsSpec()
                              throws RecognitionException,
                                     TokenStreamException
Enabled:

RecognitionException
TokenStreamException

qualifiedID

public final Token qualifiedID()
                        throws RecognitionException,
                               TokenStreamException
Enabled: Match a.b.c.d qualified ids; WILDCARD here is overloaded as id separator; that is, I need a reference to the '.' token.

RecognitionException
TokenStreamException

setBlockElement

public final BitSet setBlockElement()
                             throws RecognitionException,
                                    TokenStreamException
Enabled:

RecognitionException
TokenStreamException

tokensSpec

public final void tokensSpec()
                      throws RecognitionException,
                             TokenStreamException
Enabled:

RecognitionException
TokenStreamException

tokensSpecOptions

public final void tokensSpecOptions(Token t)
                             throws RecognitionException,
                                    TokenStreamException
Enabled:

RecognitionException
TokenStreamException

superClass

public final String superClass()
                        throws RecognitionException,
                               TokenStreamException
Enabled:

RecognitionException
TokenStreamException

rule

public final void rule()
                throws RecognitionException,
                       TokenStreamException
Enabled:

RecognitionException
TokenStreamException

throwsSpec

public final void throwsSpec()
                      throws RecognitionException,
                             TokenStreamException
Enabled:

RecognitionException
TokenStreamException

ruleOptionsSpec

public final void ruleOptionsSpec()
                           throws RecognitionException,
                                  TokenStreamException
Enabled:

RecognitionException
TokenStreamException

block

public final void block()
                 throws RecognitionException,
                        TokenStreamException
Enabled:

RecognitionException
TokenStreamException

exceptionGroup

public final void exceptionGroup()
                          throws RecognitionException,
                                 TokenStreamException
Enabled:

RecognitionException
TokenStreamException

alternative

public final void alternative()
                       throws RecognitionException,
                              TokenStreamException
Enabled:

RecognitionException
TokenStreamException

element

public final void element()
                   throws RecognitionException,
                          TokenStreamException
Enabled:

RecognitionException
TokenStreamException

exceptionSpecNoLabel

public final void exceptionSpecNoLabel()
                                throws RecognitionException,
                                       TokenStreamException
Enabled:

RecognitionException
TokenStreamException

exceptionSpec

public final void exceptionSpec()
                         throws RecognitionException,
                                TokenStreamException
Enabled:

RecognitionException
TokenStreamException

exceptionHandler

public final void exceptionHandler()
                            throws RecognitionException,
                                   TokenStreamException
Enabled:

RecognitionException
TokenStreamException

elementNoOptionSpec

public final void elementNoOptionSpec()
                               throws RecognitionException,
                                      TokenStreamException
Enabled:

RecognitionException
TokenStreamException

elementOptionSpec

public final void elementOptionSpec()
                             throws RecognitionException,
                                    TokenStreamException
Enabled:

RecognitionException
TokenStreamException

range

public final void range(Token label)
                 throws RecognitionException,
                        TokenStreamException
Enabled:

RecognitionException
TokenStreamException

terminal

public final void terminal(Token label)
                    throws RecognitionException,
                           TokenStreamException
Enabled:

RecognitionException
TokenStreamException

notTerminal

public final void notTerminal(Token label)
                       throws RecognitionException,
                              TokenStreamException
Enabled:

RecognitionException
TokenStreamException

ebnf

public final void ebnf(Token label,
                       boolean not)
                throws RecognitionException,
                       TokenStreamException
Enabled:

RecognitionException
TokenStreamException

tree

public final void tree()
                throws RecognitionException,
                       TokenStreamException
Enabled:

RecognitionException
TokenStreamException

rootNode

public final void rootNode()
                    throws RecognitionException,
                           TokenStreamException
Enabled:

RecognitionException
TokenStreamException

ast_type_spec

public final int ast_type_spec()
                        throws RecognitionException,
                               TokenStreamException
Enabled:

RecognitionException
TokenStreamException


comments?