Skip to content
mac-comp381Public

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Java AST printer

Prints a full AST for a Java source file.

Open with either IntelliJ or VS Code (with Java plugin) and run the main method in AstPrinter, or from the command line:

./gradlew ast-print

Fromt the command line, you can also pass a specific file to bypass the file chooser dialog:

./gradlew ast-print --args=examples/TestExpression.java

The program will prompt you to open a .java file, then print the AST to the console. You can parse the same file repeatedly if you want to experiment with modifications.

The project also includes a simple AST transformation demo in AstTranformer.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages