mike-lischke / antlr4ng

Next Generation TypeScript runtime for ANTLR4
Other
65 stars 11 forks source link

Where does the code for antlr4-4.13.2-SNAPSHOT-complete.jar come from? #36

Closed nchen63 closed 4 months ago

nchen63 commented 4 months ago

Is it the same as the JAR file built from https://github.com/antlr/antlr4 or is there an ng version stored somewhere?

mike-lischke commented 4 months ago

Yes, the jar has been generated using standard ANTLR4. The only difference to the official jar is that it uses different group templates for TypeScript, which allows to generate parser files compatible with antlr4ng. This is btw. the same approach that antlr4ts uses.

nchen63 commented 4 months ago

Does it have the same content as https://github.com/tunnelvisionlabs/antlr4ts/blob/master/tool/resources/org/antlr/v4/tool/templates/codegen/TypeScript/TypeScript.stg? I ran into some invalid references to antlr4ng using that file.

mike-lischke commented 4 months ago

No. This is the one from antlr4ts. I have an own group template.

nchen63 commented 4 months ago

It would be a lot easier to find and to keep in sync if it was in the same repo as antlr4ng

mike-lischke commented 4 months ago

That's the ultimate plan for ANLTRng. Once ANTLR4 has been ported to TS, a new runtime concept will be implemented where everything related to a runtime (its template files, tests, builds and releases) are done by the runtime author and no longer by the tool author.