Public Member Functions | |
void | setTool (antlr.Tool tool) |
void | reportError (String s) |
void | reportError (RecognitionException e) |
void | reportWarning (String s) |
Preprocessor (TokenBuffer tokenBuf) | |
Preprocessor (TokenStream lexer) | |
Preprocessor (ParserSharedInputState state) | |
final void | grammarFile (Hierarchy hier, String file) throws RecognitionException, TokenStreamException |
final IndexedVector | optionSpec (Grammar gr) throws RecognitionException, TokenStreamException |
final Grammar | class_def (String file, Hierarchy hier) throws RecognitionException, TokenStreamException |
final String | superClass () throws RecognitionException, TokenStreamException |
final void | rule (Grammar gr) throws RecognitionException, TokenStreamException |
final String | throwsSpec () throws RecognitionException, TokenStreamException |
final String | exceptionGroup () throws RecognitionException, TokenStreamException |
final String | exceptionSpec () throws RecognitionException, TokenStreamException |
final String | exceptionHandler () throws RecognitionException, TokenStreamException |
Static Public Attributes | |
static final String[] | _tokenNames |
static final BitSet | _tokenSet_0 = new BitSet(mk_tokenSet_0()) |
static final BitSet | _tokenSet_1 = new BitSet(mk_tokenSet_1()) |
static final BitSet | _tokenSet_2 = new BitSet(mk_tokenSet_2()) |
static final BitSet | _tokenSet_3 = new BitSet(mk_tokenSet_3()) |
static final BitSet | _tokenSet_4 = new BitSet(mk_tokenSet_4()) |
static final BitSet | _tokenSet_5 = new BitSet(mk_tokenSet_5()) |
static final BitSet | _tokenSet_6 = new BitSet(mk_tokenSet_6()) |
static final BitSet | _tokenSet_7 = new BitSet(mk_tokenSet_7()) |
static final BitSet | _tokenSet_8 = new BitSet(mk_tokenSet_8()) |
Protected Member Functions | |
antlr.Tool | getTool () |
Preprocessor (TokenBuffer tokenBuf, int k) | |
Preprocessor (TokenStream lexer, int k) |
antlr.preprocessor.Preprocessor.Preprocessor | ( | TokenBuffer | tokenBuf, | |
int | k | |||
) | [protected] |
References antlr.preprocessor.Preprocessor._tokenNames, and antlr.Parser.tokenNames.
antlr.preprocessor.Preprocessor.Preprocessor | ( | TokenBuffer | tokenBuf | ) |
antlr.preprocessor.Preprocessor.Preprocessor | ( | TokenStream | lexer, | |
int | k | |||
) | [protected] |
References antlr.preprocessor.Preprocessor._tokenNames, and antlr.Parser.tokenNames.
antlr.preprocessor.Preprocessor.Preprocessor | ( | TokenStream | lexer | ) |
antlr.preprocessor.Preprocessor.Preprocessor | ( | ParserSharedInputState | state | ) |
References antlr.preprocessor.Preprocessor._tokenNames, and antlr.Parser.tokenNames.
final Grammar antlr.preprocessor.Preprocessor.class_def | ( | String | file, | |
Hierarchy | hier | |||
) | throws RecognitionException, TokenStreamException |
References antlr.preprocessor.Preprocessor._tokenSet_2, antlr.preprocessor.Preprocessor._tokenSet_3, antlr.preprocessor.PreprocessorTokenTypes.ACTION, antlr.LLkParser.consume(), antlr.Parser.consumeUntil(), antlr.Token.getColumn(), antlr.Parser.getFilename(), antlr.Token.getLine(), antlr.Token.getText(), antlr.preprocessor.PreprocessorTokenTypes.ID, antlr.LLkParser.LA(), antlr.preprocessor.PreprocessorTokenTypes.LITERAL_class, antlr.preprocessor.PreprocessorTokenTypes.LITERAL_extends, antlr.preprocessor.PreprocessorTokenTypes.LITERAL_private, antlr.preprocessor.PreprocessorTokenTypes.LITERAL_protected, antlr.preprocessor.PreprocessorTokenTypes.LITERAL_public, antlr.LLkParser.LT(), antlr.Parser.match(), antlr.collections.impl.BitSet.member(), antlr.preprocessor.PreprocessorTokenTypes.OPTIONS_START, antlr.preprocessor.Preprocessor.optionSpec(), antlr.preprocessor.Preprocessor.reportError(), antlr.preprocessor.Preprocessor.rule(), antlr.preprocessor.PreprocessorTokenTypes.SEMI, antlr.preprocessor.Grammar.setMemberAction(), antlr.preprocessor.Grammar.setOptions(), antlr.preprocessor.Grammar.setPreambleAction(), antlr.preprocessor.Grammar.setTokenSection(), antlr.preprocessor.PreprocessorTokenTypes.SUBRULE_BLOCK, antlr.preprocessor.Grammar.superClass, antlr.preprocessor.Preprocessor.superClass(), and antlr.preprocessor.PreprocessorTokenTypes.TOKENS_SPEC.
Referenced by antlr.preprocessor.Preprocessor.grammarFile().
final String antlr.preprocessor.Preprocessor.exceptionGroup | ( | ) | throws RecognitionException, TokenStreamException |
References antlr.preprocessor.Preprocessor._tokenSet_5, antlr.LLkParser.consume(), antlr.Parser.consumeUntil(), antlr.preprocessor.Preprocessor.exceptionSpec(), antlr.LLkParser.LA(), antlr.preprocessor.PreprocessorTokenTypes.LITERAL_exception, and antlr.preprocessor.Preprocessor.reportError().
Referenced by antlr.preprocessor.Preprocessor.rule().
final String antlr.preprocessor.Preprocessor.exceptionHandler | ( | ) | throws RecognitionException, TokenStreamException |
References antlr.preprocessor.Preprocessor._tokenSet_8, antlr.preprocessor.PreprocessorTokenTypes.ACTION, antlr.preprocessor.PreprocessorTokenTypes.ARG_ACTION, antlr.LLkParser.consume(), antlr.Parser.consumeUntil(), antlr.Token.getText(), antlr.preprocessor.PreprocessorTokenTypes.LITERAL_catch, antlr.LLkParser.LT(), antlr.Parser.match(), and antlr.preprocessor.Preprocessor.reportError().
Referenced by antlr.preprocessor.Preprocessor.exceptionSpec().
final String antlr.preprocessor.Preprocessor.exceptionSpec | ( | ) | throws RecognitionException, TokenStreamException |
References antlr.preprocessor.Preprocessor._tokenSet_7, antlr.preprocessor.PreprocessorTokenTypes.ACTION, antlr.preprocessor.PreprocessorTokenTypes.ARG_ACTION, antlr.LLkParser.consume(), antlr.Parser.consumeUntil(), antlr.preprocessor.PreprocessorTokenTypes.EOF, antlr.preprocessor.Preprocessor.exceptionHandler(), antlr.Parser.getFilename(), antlr.Token.getText(), antlr.preprocessor.PreprocessorTokenTypes.ID, antlr.LLkParser.LA(), antlr.preprocessor.PreprocessorTokenTypes.LITERAL_catch, antlr.preprocessor.PreprocessorTokenTypes.LITERAL_class, antlr.preprocessor.PreprocessorTokenTypes.LITERAL_exception, antlr.preprocessor.PreprocessorTokenTypes.LITERAL_private, antlr.preprocessor.PreprocessorTokenTypes.LITERAL_protected, antlr.preprocessor.PreprocessorTokenTypes.LITERAL_public, antlr.LLkParser.LT(), antlr.Parser.match(), and antlr.preprocessor.Preprocessor.reportError().
Referenced by antlr.preprocessor.Preprocessor.exceptionGroup().
antlr.Tool antlr.preprocessor.Preprocessor.getTool | ( | ) | [protected] |
Referenced by antlr.preprocessor.Preprocessor.reportError(), and antlr.preprocessor.Preprocessor.reportWarning().
final void antlr.preprocessor.Preprocessor.grammarFile | ( | Hierarchy | hier, | |
String | file | |||
) | throws RecognitionException, TokenStreamException |
References antlr.preprocessor.Preprocessor._tokenSet_0, antlr.preprocessor.PreprocessorTokenTypes.ACTION, antlr.preprocessor.Preprocessor.class_def(), antlr.LLkParser.consume(), antlr.Parser.consumeUntil(), antlr.preprocessor.PreprocessorTokenTypes.EOF, antlr.Parser.getFilename(), antlr.Token.getText(), antlr.preprocessor.PreprocessorTokenTypes.HEADER_ACTION, antlr.LLkParser.LA(), antlr.preprocessor.PreprocessorTokenTypes.LITERAL_class, antlr.LLkParser.LT(), antlr.Parser.match(), antlr.preprocessor.PreprocessorTokenTypes.OPTIONS_START, antlr.preprocessor.Preprocessor.optionSpec(), antlr.preprocessor.Preprocessor.reportError(), and antlr.preprocessor.Grammar.setFileName().
Referenced by antlr.preprocessor.Hierarchy.readGrammarFile().
final IndexedVector antlr.preprocessor.Preprocessor.optionSpec | ( | Grammar | gr | ) | throws RecognitionException, TokenStreamException |
References antlr.preprocessor.Preprocessor._tokenSet_1, antlr.collections.impl.IndexedVector.appendElement(), antlr.preprocessor.PreprocessorTokenTypes.ASSIGN_RHS, antlr.LLkParser.consume(), antlr.Parser.consumeUntil(), antlr.preprocessor.Option.getName(), antlr.Token.getText(), antlr.preprocessor.PreprocessorTokenTypes.ID, antlr.LLkParser.LA(), antlr.LLkParser.LT(), antlr.Parser.match(), antlr.preprocessor.PreprocessorTokenTypes.OPTIONS_START, antlr.preprocessor.PreprocessorTokenTypes.RCURLY, and antlr.preprocessor.Preprocessor.reportError().
Referenced by antlr.preprocessor.Preprocessor.class_def(), antlr.preprocessor.Preprocessor.grammarFile(), and antlr.preprocessor.Preprocessor.rule().
void antlr.preprocessor.Preprocessor.reportError | ( | RecognitionException | e | ) |
Delegates the error message to the tool if any was registered via initTool(antlr.Tool)
References antlr.RecognitionException.getColumn(), antlr.RecognitionException.getErrorMessage(), antlr.RecognitionException.getFilename(), antlr.RecognitionException.getLine(), and antlr.preprocessor.Preprocessor.getTool().
void antlr.preprocessor.Preprocessor.reportError | ( | String | s | ) |
Delegates the error message to the tool if any was registered via initTool(antlr.Tool)
References antlr.Parser.getFilename(), and antlr.preprocessor.Preprocessor.getTool().
Referenced by antlr.preprocessor.Preprocessor.class_def(), antlr.preprocessor.Preprocessor.exceptionGroup(), antlr.preprocessor.Preprocessor.exceptionHandler(), antlr.preprocessor.Preprocessor.exceptionSpec(), antlr.preprocessor.Preprocessor.grammarFile(), antlr.preprocessor.Preprocessor.optionSpec(), antlr.preprocessor.Preprocessor.rule(), antlr.preprocessor.Preprocessor.superClass(), and antlr.preprocessor.Preprocessor.throwsSpec().
void antlr.preprocessor.Preprocessor.reportWarning | ( | String | s | ) |
Delegates the warning message to the tool if any was registered via initTool(antlr.Tool)
References antlr.Parser.getFilename(), and antlr.preprocessor.Preprocessor.getTool().
final void antlr.preprocessor.Preprocessor.rule | ( | Grammar | gr | ) | throws RecognitionException, TokenStreamException |
References antlr.preprocessor.Preprocessor._tokenSet_5, antlr.preprocessor.PreprocessorTokenTypes.ACTION, antlr.preprocessor.PreprocessorTokenTypes.ARG_ACTION, antlr.preprocessor.PreprocessorTokenTypes.BANG, antlr.LLkParser.consume(), antlr.Parser.consumeUntil(), antlr.preprocessor.Preprocessor.exceptionGroup(), antlr.Parser.getFilename(), antlr.Token.getText(), antlr.preprocessor.PreprocessorTokenTypes.ID, antlr.LLkParser.LA(), antlr.preprocessor.PreprocessorTokenTypes.LITERAL_private, antlr.preprocessor.PreprocessorTokenTypes.LITERAL_protected, antlr.preprocessor.PreprocessorTokenTypes.LITERAL_public, antlr.preprocessor.PreprocessorTokenTypes.LITERAL_returns, antlr.preprocessor.PreprocessorTokenTypes.LITERAL_throws, antlr.LLkParser.LT(), antlr.Parser.match(), antlr.preprocessor.PreprocessorTokenTypes.OPTIONS_START, antlr.preprocessor.Preprocessor.optionSpec(), antlr.preprocessor.Preprocessor.reportError(), antlr.preprocessor.PreprocessorTokenTypes.RULE_BLOCK, antlr.preprocessor.Rule.setArgs(), antlr.preprocessor.Rule.setBang(), antlr.preprocessor.Rule.setInitAction(), antlr.preprocessor.Rule.setReturnValue(), antlr.preprocessor.Rule.setThrowsSpec(), antlr.preprocessor.Rule.setVisibility(), and antlr.preprocessor.Preprocessor.throwsSpec().
Referenced by antlr.preprocessor.Preprocessor.class_def().
void antlr.preprocessor.Preprocessor.setTool | ( | antlr.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 via initTool(antlr.Tool)
IllegalStateException | if a tool has already been registered |
Referenced by antlr.preprocessor.Hierarchy.readGrammarFile().
final String antlr.preprocessor.Preprocessor.superClass | ( | ) | throws RecognitionException, TokenStreamException |
References antlr.preprocessor.Preprocessor._tokenSet_4, antlr.LLkParser.consume(), antlr.Parser.consumeUntil(), antlr.Token.getText(), antlr.LLkParser.LT(), antlr.Parser.match(), antlr.preprocessor.Preprocessor.reportError(), and antlr.preprocessor.PreprocessorTokenTypes.SUBRULE_BLOCK.
Referenced by antlr.preprocessor.Preprocessor.class_def().
final String antlr.preprocessor.Preprocessor.throwsSpec | ( | ) | throws RecognitionException, TokenStreamException |
References antlr.preprocessor.Preprocessor._tokenSet_6, antlr.preprocessor.PreprocessorTokenTypes.COMMA, antlr.LLkParser.consume(), antlr.Parser.consumeUntil(), antlr.Token.getText(), antlr.preprocessor.PreprocessorTokenTypes.ID, antlr.LLkParser.LA(), antlr.preprocessor.PreprocessorTokenTypes.LITERAL_throws, antlr.LLkParser.LT(), antlr.Parser.match(), and antlr.preprocessor.Preprocessor.reportError().
Referenced by antlr.preprocessor.Preprocessor.rule().
final String [] antlr.preprocessor.Preprocessor._tokenNames [static] |
Referenced by antlr.preprocessor.Preprocessor.Preprocessor().
final BitSet antlr.preprocessor.Preprocessor._tokenSet_0 = new BitSet(mk_tokenSet_0()) [static] |
Referenced by antlr.preprocessor.Preprocessor.grammarFile().
final BitSet antlr.preprocessor.Preprocessor._tokenSet_1 = new BitSet(mk_tokenSet_1()) [static] |
Referenced by antlr.preprocessor.Preprocessor.optionSpec().
final BitSet antlr.preprocessor.Preprocessor._tokenSet_2 = new BitSet(mk_tokenSet_2()) [static] |
Referenced by antlr.preprocessor.Preprocessor.class_def().
final BitSet antlr.preprocessor.Preprocessor._tokenSet_3 = new BitSet(mk_tokenSet_3()) [static] |
Referenced by antlr.preprocessor.Preprocessor.class_def().
final BitSet antlr.preprocessor.Preprocessor._tokenSet_4 = new BitSet(mk_tokenSet_4()) [static] |
Referenced by antlr.preprocessor.Preprocessor.superClass().
final BitSet antlr.preprocessor.Preprocessor._tokenSet_5 = new BitSet(mk_tokenSet_5()) [static] |
final BitSet antlr.preprocessor.Preprocessor._tokenSet_6 = new BitSet(mk_tokenSet_6()) [static] |
Referenced by antlr.preprocessor.Preprocessor.throwsSpec().
final BitSet antlr.preprocessor.Preprocessor._tokenSet_7 = new BitSet(mk_tokenSet_7()) [static] |
Referenced by antlr.preprocessor.Preprocessor.exceptionSpec().
final BitSet antlr.preprocessor.Preprocessor._tokenSet_8 = new BitSet(mk_tokenSet_8()) [static] |
Referenced by antlr.preprocessor.Preprocessor.exceptionHandler().