The Java Tree Builder

Principal Investigator: Jens Palsberg

Sponsor: DARPA

The Java Tree Building (JTB) is a frontend for The Java Compiler from Sun Microsystems. JTB allows easy building and interaction with syntax trees using the Visitor design pattern. JTB takes a plain JavaCC grammar file as input and automatically generates the following:

New visitors which subclass Visitor can then override the default methods and perform various operations on and manipulate the generated syntax tree. JTB is being used in research and product development around the world.

1998
Annual Research Report

Department of
Computer Sciences