def noViableAlt(self, s, input): if self.recognizer._state.backtracking > 0: raise BacktrackingFailed nvae = NoViableAltException(self.getDescription(), self.decisionNumber, s, input) self.error(nvae) raise nvae
def noViableAlt(self, s, input): if self.recognizer.backtracking > 0: self.recognizer.failed = True return nvae = NoViableAltException(self.getDescription(), self.decisionNumber, s, input) self.error(nvae) raise nvae