<jjtree>

JJTree is a tool that is a preprocessor for JavaCC grammar files. See the section on the <javacc> task for more information on where to obtain the JavaCC suite of tools. Table 5.11 details the attributes for the <jjtree> task.

Table 5.11. Table of <jjtree> Attributes
Attributes Description
target The JavaCC grammar file to compile. (Required)
javacchome The location of the JavaCC installation. (Required)
outputdirectory The directory where the generated file will be written. The default is the directory where the grammar file is located.
buildnodefiles Sets the JJTree BUILD_PARSER flag.
multi Sets the JJTree MULTI flag.
nodedefaultvoid Sets the JJTree NODE_DEFAULT_VOID flag.
nodefactory Sets the JJTree NODE_FACTORY flag.
nodepackage ...

Get Ant Developer’s Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.