Kipper-Lang / Kipper

The Kipper programming language for Browsers and Node.js 🦊✨ Made at HTL Leonding & JKU Linz
https://kipper-lang.org
GNU General Public License v3.0
26 stars 4 forks source link

[Other] Migrate away from `antlr4ts` to direct Antlr4 TypeScript target generation #518

Open Luna-Klatzer opened 2 months ago

Luna-Klatzer commented 2 months ago

Is there an existing issue for this?

Current State & Issue

As described in https://github.com/tunnelvisionlabs/antlr4ts/issues/549, the need of using antlr4ts to generate the language Lexer and Parser has vanished, as the base Antlr4 package now provides such functionality as well.

As such to avoid depending on a deprecated project which itself is also incompatible with newer versions, we will need to migrate away and adjust our lexer & parser generation workflows.

Luna-Klatzer commented 1 month ago

As the current package antlr4ts is optimised and likely performs better, we might have to look into whether this migration is even viable, as migrating the parser/lexer generator is not essential for the package's security or similar.