ANTLR JavaScript Target

后端 未结 4 981
执念已碎
执念已碎 2021-02-20 12:09

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

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-20 12:54

    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.

提交回复
热议问题