grammars-v4
grammars-v4 copied to clipboard
[swift2] Bug fixes in swift5 should have been back-ported to swift2.
https://github.com/antlr/grammars-v4/commit/8a9c082e086e78e62708d5130e8bcf44954e0ddc#diff-0b8430de966eb16bac941a83290b0e2de0f14fe89585e89a7dbca0f4b697b1e2
This change is needed for swift2--regression tests fail.
Apparently, the crash happens when using a local copy of the Antlr Tool that fixes a problem with empty actions. https://github.com/antlr/antlr4/issues/4819. But, just looking over the base class code for this grammar, it's not correct because, yes, it assumes the token stream has been filled to the EOF.