Skip to content

Any plans to make this run on Python 3 #67

Open

Description

@hasii2011

Inquiring minds would like to know? :-)

Activity

  1. adsharma commented on Aug 10, 2021

    @adsharma

    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.

  2. adsharma commented on Aug 12, 2021

    @adsharma

    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

  3. MatthewTingum commented on May 6, 2022

    @MatthewTingum

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions