Hi,
Some of you already know my plans to port ANTLR4 to Typescript, thereby creating a new ANTLR4 TS runtime (as an alternative to antlr4ts). I'd like to take the next step now, for your information and to get potential fellows to hack with me on that code.
There are actually 2 top level projects here:
Both of which are still work in progress and released under the MIT license. The TS runtime is just a part of the ANTLR4 tool and will later be merged to the main ANTLR4 (Java) repository as yet another target language. The java2typescript project is of course using ANTLR4 (based on the antlr4ts runtime, which will ultimately be replaced with the new TS runtime) and on it's own an interesting parsing project for those of you who are looking for a cool project that uses ANTLR4.
The converter is already pretty matured and can convert Java code with only very few syntax problems, handling even complicated Java expressions like overloaded (generic) methods + constructors, explicit constructor invocation, nested static and non-static classes and so on (<= Java 11). There are Java SDK polyfills for classes needed by the generated TS code (like java.lang.StringBuilder), which are easy to extend with more classes, as the need arises. There's a readme in the lib/java folder explaining how the polyfills are organised and how to extend them.
The runtime (while completely converted) does not fully compile yet, because some manual fixes are still required.
Thanks,