antlr/runtime-testsuite
Ewan Mellor eb9124fff8
[Swift] Fix parse-cancellation in BailErrorStrategy.
BailErrorStrategy is supposed to throw an error that's different from
the ordinary recognition error, specifically so that it can be handled
differently by client code.  This was not ported over from Java correctly.

Fix this by moving parseCancellation from ANTLRError to ANTLRException,
adding its RecognitionException argument, and throwing it from the
two handlers in BailErrorStrategy.

Also remove ANTLRException.cannotInvokeStartRule, which is unused.
(The Java runtime uses it when ParseTreePatternMatcher throws a generic
exception, but we don't have that.)
2017-11-11 10:45:38 -08:00
..
annotations [maven-release-plugin] prepare for next development iteration 2017-03-30 14:11:59 -07:00
processors [maven-release-plugin] prepare for next development iteration 2017-03-30 14:11:59 -07:00
resources/org/antlr/v4/test/runtime Remove tokenNames / getTokenNames from the Recognizer interface. 2017-10-25 13:28:40 -07:00
test/org/antlr/v4 [Swift] Fix parse-cancellation in BailErrorStrategy. 2017-11-11 10:45:38 -08:00
pom.xml [maven-release-plugin] prepare for next development iteration 2017-03-30 14:11:59 -07:00