I have been using ANTLR to generate a parser + tree grammar for a mark up language with Java target which works fine. Now I am trying to get the target in JavaScript to use it i
There is a new JS Lang target for ANTLR4 that was posted to GitHub almost 3 months ago:
antlr/antlr4-javascript
It's not integrated into an official release yet, but you can probably just throw it into the latest ANTLR4 codebase and recompile ANTLR yourself.