You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
adsharma commentedon Aug 10, 2021
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.
adsharma commentedon Aug 12, 2021
I found it easier to bootstrap a new project from scratch using antlr4-python3 and updated grammars. This one handles HelloWorld.java.
https://github.com/adsharma/decaf2many
MatthewTingum commentedon May 6, 2022
Xrefing #66 #71 and #76 for the people coming from search engines.