forked from jasder/antlr
add type narrowed getters
This commit is contained in:
parent
71bd16020f
commit
6b6274b0c8
|
@ -125,6 +125,8 @@ public abstract class Lexer extends Recognizer<Integer, LexerATNSimulator>
|
|||
getInterpreter().reset();
|
||||
}
|
||||
|
||||
public LexerATNSimulator getInterpreter() { return _interp; }
|
||||
|
||||
/** Return a token from this source; i.e., match a token on the char
|
||||
* stream.
|
||||
*/
|
||||
|
|
|
@ -124,6 +124,8 @@ public abstract class Parser extends Recognizer<Token, ParserATNSimulator<Token>
|
|||
}
|
||||
}
|
||||
|
||||
public ParserATNSimulator getInterpreter() { return _interp; }
|
||||
|
||||
/** Match current input symbol against ttype. Attempt
|
||||
* single token insertion or deletion error recovery. If
|
||||
* that fails, throw MismatchedTokenException.
|
||||
|
|
Loading…
Reference in New Issue