| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectantlr.Parserantlr.LLkParserantlr.preprocessor.PreprocessorField Summary | |
static String[] | |
static BitSet | |
static BitSet | |
static BitSet | |
static BitSet | |
static BitSet | |
static BitSet | |
static BitSet | |
static BitSet | |
static BitSet | |
Fields inherited from class antlr.Parser | |
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth | |
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 | |
| |
| |
| |
| |
Method Summary | |
Grammar | |
String | |
String | |
String | |
protected Tool |
|
void |
|
IndexedVector |
|
void |
|
void |
|
void |
|
void | |
void | |
String | |
String | |
public final Grammar class_def(String file, Hierarchy hier) throws RecognitionException, TokenStreamException
public final String exceptionGroup()
throws RecognitionException,
TokenStreamExceptionpublic final String exceptionHandler()
throws RecognitionException,
TokenStreamExceptionpublic final void grammarFile(Hierarchy hier, String file) throws RecognitionException, TokenStreamException
public final IndexedVector optionSpec(Grammar gr) throws RecognitionException, TokenStreamException
public void reportError(String s)
Delegates the error message to the tool if any was registered viainitTool(antlr.Tool)
- Overrides:
- reportError in interface Parser
- Since:
- 2.7.2
public void reportError(RecognitionException e)
Delegates the error message to the tool if any was registered viainitTool(antlr.Tool)
- Overrides:
- reportError in interface Parser
- Since:
- 2.7.2
public void reportWarning(String s)
Delegates the warning message to the tool if any was registered viainitTool(antlr.Tool)
- Overrides:
- reportWarning in interface Parser
- Since:
- 2.7.2
public 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. Instead, the antlr.Tool instance should register itself viainitTool(antlr.Tool)
- Since:
- 2.7.2