antlr4: Uncaught SyntaxError: Identifier '_alt' has already been declared
This issue happends on JS runtime target with antlr 4.9, for example:
antlr4 -Dlanguage=JavaScript Java9.g4
The generated file Java9Parser.js
run with this error.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (9 by maintainers)
Commits related to this issue
- Merge pull request #2997 from ericvergnaud/fix-js-code-gen Potential fix to #2980 — committed to antlr/antlr4 by ericvergnaud 4 years ago
Hello,
I just upgraded to version 4.9.1 and everything works fine now.
Thanks a lot!