From 753a6c60f47f3ac4f270005b65e9d6481de8eb68 Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Fri, 23 Oct 2015 10:00:02 -0700 Subject: Adding maven and ant source trees Change-Id: I0a39b9add833a31b9c3f98d193983ae2f3a5a445 Signed-off-by: Ashlee Young --- .../ant/apache-ant-1.9.6/manual/Tasks/javacc.html | 210 +++++++++++++++++++++ 1 file changed, 210 insertions(+) create mode 100644 framework/src/ant/apache-ant-1.9.6/manual/Tasks/javacc.html (limited to 'framework/src/ant/apache-ant-1.9.6/manual/Tasks/javacc.html') diff --git a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/javacc.html b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/javacc.html new file mode 100644 index 00000000..3c0dcfa8 --- /dev/null +++ b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/javacc.html @@ -0,0 +1,210 @@ + + + + + + +JavaCC Task + + + + +

JavaCC

+

Description

+

+ 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 Apache 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 + 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. +

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
targetThe grammar file to process.Yes
javacchomeThe 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
buildparserSets the BUILD_PARSER grammar option. This is a boolean option.No
buildtokenmanagerSets the BUILD_TOKEN_MANAGER grammar option. This is a boolean option.No
cachetokensSets the CACHE_TOKENS grammar option. This is a boolean option.No
choiceambiguitycheckSets the CHOICE_AMBIGUITY_CHECK grammar option. This is an integer option.No
commontokenactionSets the COMMON_TOKEN_ACTION grammar option. This is a boolean option.No
debuglookaheadSets the DEBUG_LOOKAHEAD grammar option. This is a boolean option.No
debugparserSets the DEBUG_PARSER grammar option. This is a boolean option.No
debugtokenmanagerSets the DEBUG_TOKEN_MANAGER grammar option. This is a boolean option.No
errorreportingSets the ERROR_REPORTING grammar option. This is a boolean option.No
forcelacheckSets the FORCE_LA_CHECK grammar option. This is a boolean option.No
ignorecaseSets the IGNORE_CASE grammar option. This is a boolean option.No
javaunicodeescapeSets the JAVA_UNICODE_ESCAPE grammar option. This is a boolean option.No
jdkversionSets the JDK_VERSION option. This is a string option.No
keeplinecolumnSets the KEEP_LINE_COLUMN grammar option. This is a boolean option.No
lookaheadSets the LOOKAHEAD grammar option. This is an integer option.No
optimizetokenmanagerSets the OPTIMIZE_TOKEN_MANAGER grammar option. This is a boolean option.No
otherambiguitycheckSets the OTHER_AMBIGUITY_CHECK grammar option. This is an integer option.No
sanitycheckSets the SANITY_CHECK grammar option. This is a boolean option.No
staticSets the STATIC grammar option. This is a boolean option.No
unicodeinputSets the UNICODE_INPUT grammar option. This is a boolean option.No
usercharstreamSets the USER_CHAR_STREAM grammar option. This is a boolean option.No
usertokenmanagerSets the USER_TOKEN_MANAGER grammar option. This is a boolean option.No
maxmemoryMax amount of memory to allocate to the forked + VM. since Ant 1.8.3No
+

Example

+
+<javacc
+    target="src/Parser.jj"
+    outputdirectory="build/src"
+    javacchome="c:/program files/JavaCC"
+    static="true"
+/>
+
+

+ 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. +

+ + + + + + -- cgit 1.2.3-korg