java.lang.Object antlr.Parser antlr.LLkParser antlr.preprocessor.Preprocessor
Field Summary | |
static java.lang.String[] |
_tokenNames
|
static BitSet |
_tokenSet_0
|
static BitSet |
_tokenSet_1
|
static BitSet |
_tokenSet_2
|
static BitSet |
_tokenSet_3
|
static BitSet |
_tokenSet_4
|
static BitSet |
_tokenSet_5
|
static BitSet |
_tokenSet_6
|
static BitSet |
_tokenSet_7
|
static BitSet |
_tokenSet_8
|
Fields inherited from interface antlr.preprocessor.PreprocessorTokenTypes |
ACTION, ALT, ARG_ACTION, ASSIGN_RHS, BANG, CHAR_LITERAL, COMMA, COMMENT, CURLY_BLOCK_SCARF, DIGIT, ELEMENT, EOF, ESC, HEADER_ACTION, ID, ID_OR_KEYWORD, LITERAL_catch, LITERAL_class, LITERAL_exception, LITERAL_extends, LITERAL_private, LITERAL_protected, LITERAL_public, LITERAL_returns, LITERAL_throws, LITERAL_tokens, LPAREN, ML_COMMENT, NEWLINE, NULL_TREE_LOOKAHEAD, OPTIONS_START, RCURLY, RPAREN, RULE_BLOCK, SEMI, SL_COMMENT, STRING_LITERAL, SUBRULE_BLOCK, TOKENS_SPEC, WS, XDIGIT |
Constructor Summary | |
Preprocessor(ParserSharedInputState state)
|
|
Preprocessor(TokenBuffer tokenBuf)
|
|
Preprocessor(TokenStream lexer)
|
Method Summary | |
antlr.preprocessor.Grammar |
class_def(java.lang.String file,
Hierarchy hier)
|
java.lang.String |
exceptionGroup()
|
java.lang.String |
exceptionHandler()
|
java.lang.String |
exceptionSpec()
|
void |
grammarFile(Hierarchy hier,
java.lang.String file)
|
IndexedVector |
optionSpec(antlr.preprocessor.Grammar gr)
|
void |
reportError(RecognitionException e)
Delegates the error message to the tool if any was registered via #initTool(antlr.Tool) |
void |
reportError(java.lang.String s)
Delegates the error message to the tool if any was registered via #initTool(antlr.Tool) |
void |
reportWarning(java.lang.String s)
Delegates the warning message to the tool if any was registered via #initTool(antlr.Tool) |
void |
rule(antlr.preprocessor.Grammar gr)
|
void |
setTool(Tool tool)
In order to make it so existing subclasses don't break, we won't require that the antlr.Tool instance be passed as a constructor element. |
java.lang.String |
superClass()
|
java.lang.String |
throwsSpec()
|
Methods inherited from class antlr.LLkParser |
consume, LA, LT, traceIn, traceOut |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String[] _tokenNames
public static final BitSet _tokenSet_0
public static final BitSet _tokenSet_1
public static final BitSet _tokenSet_2
public static final BitSet _tokenSet_3
public static final BitSet _tokenSet_4
public static final BitSet _tokenSet_5
public static final BitSet _tokenSet_6
public static final BitSet _tokenSet_7
public static final BitSet _tokenSet_8
Constructor Detail |
public Preprocessor(TokenBuffer tokenBuf)
public Preprocessor(TokenStream lexer)
public Preprocessor(ParserSharedInputState state)
Method Detail |
public void setTool(Tool tool)
#initTool(antlr.Tool)
java.lang.IllegalStateException
- if a tool has already been registeredpublic void reportError(java.lang.String s)
#initTool(antlr.Tool)
reportError
in class Parser
public void reportError(RecognitionException e)
#initTool(antlr.Tool)
reportError
in class Parser
public void reportWarning(java.lang.String s)
#initTool(antlr.Tool)
reportWarning
in class Parser
public final void grammarFile(Hierarchy hier, java.lang.String file) throws RecognitionException, TokenStreamException
RecognitionException
TokenStreamException
public final IndexedVector optionSpec(antlr.preprocessor.Grammar gr) throws RecognitionException, TokenStreamException
RecognitionException
TokenStreamException
public final antlr.preprocessor.Grammar class_def(java.lang.String file, Hierarchy hier) throws RecognitionException, TokenStreamException
RecognitionException
TokenStreamException
public final java.lang.String superClass() throws RecognitionException, TokenStreamException
RecognitionException
TokenStreamException
public final void rule(antlr.preprocessor.Grammar gr) throws RecognitionException, TokenStreamException
RecognitionException
TokenStreamException
public final java.lang.String throwsSpec() throws RecognitionException, TokenStreamException
RecognitionException
TokenStreamException
public final java.lang.String exceptionGroup() throws RecognitionException, TokenStreamException
RecognitionException
TokenStreamException
public final java.lang.String exceptionSpec() throws RecognitionException, TokenStreamException
RecognitionException
TokenStreamException
public final java.lang.String exceptionHandler() throws RecognitionException, TokenStreamException
RecognitionException
TokenStreamException