Bug#410283: RFP: jtb -- a syntax tree builder to be used with the Java Compiler Compiler (JavaCC) parser generator
Package: wnpp
Severity: wishlist
* Package name : jtb
Version : 1.3.2
Upstream Author : Wanjun Wang <wanjun@purdue.edu> and others
* URL : http://compilers.cs.ucla.edu/jtb/
* License : BSD
Programming Lang: Java
Description : a syntax tree builder for JavaCC
JTB is a syntax tree builder to be used with the Java Compiler Compiler
(JavaCC) parser generator. It takes a plain JavaCC grammar file as
input and automatically generates the following:
* A set of syntax tree classes based on the productions in the
grammar, utilizing the Visitor design pattern.
* Two interfaces: Visitor and GJVisitor. Two depth-first
visitors: DepthFirstVisitor and GJDepthFirst, whose default
methods simply visit the children of the current node.
* A JavaCC grammar jtb.out.jj with the proper annotations to
build the syntax tree during parsing.
New visitors, which subclass DepthFirstVisitor or
GJDepthFirst, can then override the default methods and
perform various operations on and manipulate the generated
syntax tree.
Reply to: