Java-front is a package you can use to generate or transform Java code. It contains a handcrafted SDF grammar for Java, Stratego signatures generated from this grammar and a handcrafted pretty printer.

Some of the unique features of Java-front are:

  • Modular and extensible syntax definition for Java
    • Full support for the new language features introduced in Java 5.0
    • Heavily tested pretty-printer, which inserts parentheses where necessary!
    • Option to preserve comments
    • Conversion of abstract syntax tree to XML possible

http://strategoxt.org/Stratego/JavaFront

0.9 error feature 0.5 improvement 0.7 0.8 wontfix notabug

Rob Vermaas