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

Most upvoted comments

Hello,

I just upgraded to version 4.9.1 and everything works fine now.

Thanks a lot!