diff --git a/docs/manual/OptionalTasks/javacc.html b/docs/manual/OptionalTasks/javacc.html index 3b94754b3..619be888b 100644 --- a/docs/manual/OptionalTasks/javacc.html +++ b/docs/manual/OptionalTasks/javacc.html @@ -8,25 +8,25 @@
- Invokes the JavaCC compiler + Invokes the JavaCC compiler compiler on a grammar file.
- To use the javacc task, set the target attribute to the name of the - 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 + To use the javacc task, set the target attribute to the name of the + 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 javacc writes the generated files to the directory containing the grammar file.
- This task only invokes JavaCC if the grammar file is newer than the generated + This task only invokes JavaCC if the grammar file is newer than the generated Java files. javacc assumes that the Java class name of the generated parser is the same as the name of the grammar file, ignoring the .jj. - If this is not the case, the javacc task will still work, but it will always + If this is not the case, the javacc task will still work, but it will always generate the output files.
@@ -115,6 +115,11 @@@@ -172,7 +177,7 @@-<javacc - target="src/Parser.jj" +<javacc + target="src/Parser.jj" outputdirectory="build/src" - javacchome="c:/program files/JavaCC" + javacchome="c:/program files/JavaCC" static="true" />
Copyright © 2000-2001 Apache Software Foundation. +
Copyright © 2000-2001,2003 Apache Software Foundation. All rights Reserved.
diff --git a/docs/manual/OptionalTasks/jjdoc.html b/docs/manual/OptionalTasks/jjdoc.html new file mode 100644 index 000000000..e48abb59e --- /dev/null +++ b/docs/manual/OptionalTasks/jjdoc.html @@ -0,0 +1,101 @@ + + + + + +Since Ant 1.6
+Invokes the JJDoc preprocessor +for the JavaCC compiler compiler. It takes a JavaCC parser specification +and produces documentation for the BNF grammar. +It can operate in three modes, determined by command line options. +
To use the jjdoc task, set the target attribute to the name +of the JavaCC 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 +outputfile to write the generated BNF documentation file to a specific (directory and) file. +Otherwise jjdoc writes the generated BNF documentation file as the JavaCC +grammar file with a suffix .txt or .html.
+This task only invokes JJDoc if the grammar file is newer than the +generated BNF documentation file.
+ +Attribute | + +Description | + +Required | +
target | + +The javacc grammar file to process. | + +Yes | +
javacchome | + +The directory containing the JavaCC distribution. | + +Yes | +
outputfile | + +The file to write the generated BNF documentation file to. If not set, +the file is written with the same name as the JavaCC grammar file but with a the suffix .html or .txt. | + +No | +
text | + +Sets the TEXT BNF documentation option. This is a boolean +option. | + +No | +
onetable | + +Sets the ONE_TABLE BNF documentation option. This is a boolean option. | + +No | +
++This invokes JJDoc on grammar file src/Parser.jj, writing the generated +BNF documentation file, ParserBNF.html, file to doc. +<jjdoc + target="src/Parser.jj" + outputfile="doc/ParserBNF.html" + javacchome="c:/program files/JavaCC" +/>+
Copyright © 2003 Apache Software Foundation. All rights +Reserved.
+ + + diff --git a/docs/manual/OptionalTasks/jjtree.html b/docs/manual/OptionalTasks/jjtree.html index e66526a04..15b224231 100644 --- a/docs/manual/OptionalTasks/jjtree.html +++ b/docs/manual/OptionalTasks/jjtree.html @@ -12,18 +12,21 @@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 +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.
+to write the generated JavaCC grammar and node files to a specific directory. +Otherwise jjtree writes the generated JavaCC grammar and node files to the directory +containing the JJTree grammar file. As an extra option, you can also set the +outputfile to write the generated JavaCC grammar file to a specific (directory and) file. +Otherwise jjtree writes the generated JavaCC grammar file as the JJTree +grammar file with a suffix .jj.This task only invokes JJTree if the grammar file is newer than the generated JavaCC file.
@@ -57,8 +60,20 @@ generated JavaCC file..jj
. This is a
+filename relative to outputdirectory if specified, the
+project's basedir.Copyright © 2001-2002 Apache Software Foundation. All rights +
Copyright © 2001-2003 Apache Software Foundation. All rights Reserved.