small speed tweak

This commit is contained in:
parrt 2015-06-11 12:56:29 -07:00
parent a28b299dd4
commit b8035d36d0
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ public abstract class Parser extends Recognizer<Token, ParserATNSimulator> {
public Token match(int ttype) throws RecognitionException {
Token t = getCurrentToken();
if ( t.getType()==ttype ) {
if ( t.getType()==Token.EOF ) {
if ( ttype==Token.EOF ) {
matchedEOF = true;
}
_errHandler.reportMatch(this);