add type narrowed getters

This commit is contained in:
Terence Parr 2012-07-02 15:48:45 -07:00
parent 71bd16020f
commit 6b6274b0c8
2 changed files with 4 additions and 0 deletions

View File

@ -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.
*/

View File

@ -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.