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
generate the output files.
Attribute |
Description |
Required |
target |
The grammar file to process. |
Yes |
javacchome |
The directory containing the JavaCC distribution. |
Yes |
outputdirectory |
The directory to write the generated files to. If not set, the files
are written to the directory containing the grammar file.
|
No |
buildparser |
Sets the BUILD_PARSER grammar option. This is a boolean option. |
No |
buildtokenmanager |
Sets the BUILD_TOKEN_MANAGER grammar option. This is a boolean option. |
No |
cachetokens |
Sets the CACHE_TOKENS grammar option. This is a boolean option. |
No |
choiceambiguitycheck |
Sets the CHOICE_AMBIGUITY_CHECK grammar option. This is an integer option. |
No |
commontokenaction |
Sets the COMMON_TOKEN_ACTION grammar option. This is a boolean option. |
No |
debuglookahead |
Sets the DEBUG_LOOKAHEAD grammar option. This is a boolean option. |
No |
debugparser |
Sets the DEBUG_PARSER grammar option. This is a boolean option. |
No |
debugtokenmanager |
Sets the DEBUG_TOKEN_MANAGER grammar option. This is a boolean option. |
No |
errorreporting |
Sets the ERROR_REPORTING grammar option. This is a boolean option. |
No |
forcelacheck |
Sets the FORCE_LA_CHECK grammar option. This is a boolean option. |
No |
ignorecase |
Sets the IGNORE_CASE grammar option. This is a boolean option. |
No |
javaunicodeescape |
Sets the JAVA_UNICODE_ESCAPE grammar option. This is a boolean option. |
No |
lookahead |
Sets the LOOKAHEAD grammar option. This is an integer option. |
No |
optimizetokenmanager |
Sets the OPTIMIZE_TOKEN_MANAGER grammar option. This is a boolean option. |
No |
otherambiguitycheck |
Sets the OTHER_AMBIGUITY_CHECK grammar option. This is an integer option. |
No |
sanitycheck |
Sets the SANITY_CHECK grammar option. This is a boolean option. |
No |
static |
Sets the STATIC grammar option. This is a boolean option. |
No |
unicodeinput |
Sets the UNICODE_INPUT grammar option. This is a boolean option. |
No |
usercharstream |
Sets the USER_CHAR_STREAM grammar option. This is a boolean option. |
No |
usertokenmanager |
Sets the USER_TOKEN_MANAGER grammar option. This is a boolean option. |
No |
This invokes JavaCC on grammar file src/Parser.jj, writing the generated
files to build/src. The grammar option STATIC is set to true when
invoking JavaCC.
Copyright © 2000-2001 Apache Software Foundation.
All rights
Reserved.