tunnelvisionlabs / antlr4ts

Optimized TypeScript target for ANTLR 4
Other
634 stars 109 forks source link

Obsolete Package, use antlr4 directly to generate typescript targets #549

Open 1R053 opened 4 months ago

1R053 commented 4 months ago

This package is obsolete and will not work with most recent typescript versions, e.g. due to error TS2611.

Instead, use ANTLR4 directly.

  1. Install as described here: https://github.com/antlr/antlr4/blob/master/doc/getting-started.md

  2. generate the typescript files as described here: https://github.com/antlr/antlr4/blob/master/doc/typescript-target.md

mike-lischke commented 1 week ago

ANTLR4 has no real TypeScript runtime (only the code generator is using TS). The runtime is still JavaScript with some type definitions.

For a full TypeScript runtime I recommend antlr4ng, which I created.