antlr.preprocessor
public class Preprocessor extends LLkParser implements PreprocessorTokenTypes
| Field Summary | |
|---|---|
| static 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 |
| Constructor Summary | |
|---|---|
| protected | Preprocessor(TokenBuffer tokenBuf, int k) |
| Preprocessor(TokenBuffer tokenBuf) | |
| protected | Preprocessor(TokenStream lexer, int k) |
| Preprocessor(TokenStream lexer) | |
| Preprocessor(ParserSharedInputState state) | |
| Method Summary | |
|---|---|
| Grammar | class_def(String file, Hierarchy hier) |
| String | exceptionGroup() |
| String | exceptionHandler() |
| String | exceptionSpec() |
| protected Tool | getTool() |
| void | grammarFile(Hierarchy hier, String file) |
| IndexedVector | optionSpec(Grammar gr) |
| void | reportError(String s) Delegates the error message to the tool if any was registered via
|
| void | reportError(RecognitionException e) Delegates the error message to the tool if any was registered via
|
| void | reportWarning(String s) Delegates the warning message to the tool if any was registered via
|
| void | rule(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. |
| String | superClass() |
| String | throwsSpec() |
Since: 2.7.2
Since: 2.7.2
Since: 2.7.2
Since: 2.7.2
Throws: IllegalStateException if a tool has already been registered
Since: 2.7.2