grammars-v4 icon indicating copy to clipboard operation
grammars-v4 copied to clipboard

[swift2] Bug fixes in swift5 should have been back-ported to swift2.

Open kaby76 opened this issue 8 months ago • 1 comments

https://github.com/antlr/grammars-v4/commit/8a9c082e086e78e62708d5130e8bcf44954e0ddc#diff-0b8430de966eb16bac941a83290b0e2de0f14fe89585e89a7dbca0f4b697b1e2

This change is needed for swift2--regression tests fail.

kaby76 avatar May 08 '25 14:05 kaby76

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.

kaby76 avatar May 09 '25 13:05 kaby76