Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plans to make this run on Python 3 #67

Open
hasii2011 opened this issue Apr 14, 2020 · 3 comments
Open

Any plans to make this run on Python 3 #67

hasii2011 opened this issue Apr 14, 2020 · 3 comments

Comments

@hasii2011
Copy link

Inquiring minds would like to know? :-)

@adsharma
Copy link

adsharma commented 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
Copy link

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
Copy link

Xrefing #66 #71 and #76 for the people coming from search engines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants