<javacc>

The JavaCC (Java Compiler Compiler) is another popular tool, similar in nature to ANTLR, for building language compilers. It is one of the more popular tools for Parser Generator applications. You can download it from http://www.webgain.com/products/java_cc/.

Ant provides the <javacc> task for controlling the build process of JavaCC, assuming you have already installed JavaCC onto your system from the previous URL. This task requires knowing the location of this installation, so it can find the necessary class files to complete the operation. Table 5.10 details the attributes for this task, with the majority being flags that are set on or off depending on the JavaCC feature you want enabled.

Table 5.10. Table of <javacc> Attributes ...

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.