This library translates a Java AST (extracted by m3) to the Object Flow Graph language.
make sure you have installed rascal!
- Navigate to the workspace directory your Eclipse
- Clone this project
- In Eclipse: import existing projects, point the wizard to the workspace directory
- It will find a new project
rascal-OFG
, add that
- Use import project from git and point it to this repository.
- Good luck!
- In case Eclipse messes it up, see the command-line approach.
- Create a new rascal project
- In the new project wizard, add a reference to the
rascal-OFG
project - Type
import lang::ofg::ast::Java2OFG;
in the console to see it can find the library.
- Open the properties of your project
- go to
Java Build Path
- Open the "tab"
projects
- Click
Add...
and choose therascal-OFG
project
The module lang::ofg::ast::FlowLanguage
contains an ADT modeling Tonella and Potrich Object Flow Graph language.
The lang::ofg::ast::Java2OFG
module translates a m3 AST into the OFG ADT.
If you have found a bug, please provide a short snippet of java code which shows what goes wrong. And file an issue on this github project.
We welcome pull-requests! ;-)