forked from jasder/antlr
tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9092]
This commit is contained in:
parent
49571e386f
commit
02d424a92b
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue