Open hasii2011 opened 4 years ago
https://github.com/adsharma/java2python has antrl4+java9+python3.
I started with the grammar here:
https://github.com/antlr/grammars-v4/tree/master/java/java9
But switched to:
https://github.com/antlr/grammars-v4/tree/master/java/java
Much of it was running 2to3, downloading grammars and updating routine stuff. Now comes the hard part.
Java.g and JavaParser.g4 are not exactly the same. So j2py fails because of the differences. If anyone has made further progress on this, happy to collaborate.
I found it easier to bootstrap a new project from scratch using antlr4-python3 and updated grammars. This one handles HelloWorld.java.
Xrefing #66 #71 and #76 for the people coming from search engines.
Inquiring minds would like to know? :-)