[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9092]
This commit is contained in:
parrt 2011-10-02 12:58:53 -08:00
parent 49571e386f
commit 02d424a92b
2 changed files with 3 additions and 2 deletions

View File

@ -6,5 +6,6 @@ package org.antlr.v4.runtime;
public class InputMismatchException extends RecognitionException {
public InputMismatchException(BaseRecognizer recognizer) {
super(recognizer, recognizer.getInputStream(), recognizer._ctx);
this.offendingToken = (Token)recognizer.getCurrentInputSymbol();
}
}

View File

@ -47,8 +47,8 @@ public class NoViableAltException extends RecognitionException {
public NoViableAltException(BaseRecognizer recognizer) { // LL(1) error
this(recognizer,recognizer.getInputStream(),
((TokenStream)recognizer.getInputStream()).LT(1),
((TokenStream)recognizer.getInputStream()).LT(1),
(Token)recognizer.getCurrentInputSymbol(),
(Token)recognizer.getCurrentInputSymbol(),
null,
recognizer._ctx);
}