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

Migrate code translation to ANTLR #4

Open
jonathanschilling opened this issue May 16, 2022 · 0 comments
Open

Migrate code translation to ANTLR #4

jonathanschilling opened this issue May 16, 2022 · 0 comments

Comments

@jonathanschilling
Copy link
Owner

This repository contains a branch named rewrite-using-antlr4 where I started to write a Java code using ANTLR4 to do the translation from Fortran to Java. The main entry file is FortranHandlerPrototype.java.

The following steps are needed:

  • implement methods in FortranListener.java that create an object-oriented AST
  • implement methods to unparse that AST into Java (possibly including the Dummy class for handling GOTOs for now)
  • run this on all BLAS methods
  • use Maven plugin (what's its name again?) to do the bytecode replacements from Dummy.goto() and Dummy.label() into JVM GOTOs
  • use above mechanics to also translate BLAS test suite
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

1 participant