next up previous contents index
Next: Parameters Up: JJTree Previous: JJTree   Contents   Index

Description

Invokes the JJTree preprocessor for the JavaCC compiler compiler. It inserts parse tree building actions at various places in the JavaCC source that it generates. The output of JJTree is run through JavaCC to create the parser.

To use the jjtree task, set the target attribute to the name of the jjtree grammar file to process. You also need to specify the directory containing the JavaCC installation using the javacchome attribute, so that ant can find the JavaCC classes. Optionally, you can also set the outputdirectory to write the generated file to a specific directory. Otherwise jjtree writes the generated JavaCC grammar file to the directory containing the JJTree grammar file.

This task only invokes JJTree if the grammar file is newer than the generated JavaCC file.



Andrew Marlow 2003-07-08