Debian Codegraph @

www/doc/commandline.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <!--
4
5 Copyright (c) 2006, Sun Microsystems, Inc.
6 All rights reserved.
7
8 Redistribution and use in source and binary forms, with or without
9 modification, are permitted provided that the following conditions are met:
10
11 * Redistributions of source code must retain the above copyright notice,
12 this list of conditions and the following disclaimer.
13 * Redistributions in binary form must reproduce the above copyright
14 notice, this list of conditions and the following disclaimer in the
15 documentation and/or other materials provided with the distribution.
16 * Neither the name of the Sun Microsystems, Inc. nor the names of its
17 contributors may be used to endorse or promote products derived from
18 this software without specific prior written permission.
19
20 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 THE POSSIBILITY OF SUCH DAMAGE.
31
32 -->
33 <head>
34 <title>JavaCC Command Line Syntax</title>
35 <!-- Changed by: Michael Van De Vanter, 14-Jan-2003 -->
36 </head>
37 <body bgcolor="#FFFFFF" >
38
39 <h1>JavaCC [tm]: Command Line Syntax</h1>
40 <p>
41 First, you can obtain a synopsis of the command line syntax by simply
42 typing "javacc". This is what you get:
43 </p>
44 <pre>
45 % javacc
46 &lt;&lt;&lt;&lt; Version and copyright info&gt;&gt;&gt;
47
48 Usage:
49 javacc option-settings inputfile
50
51 "option-settings" is a sequence of settings separated by spaces.
52 Each option setting must be of one of the following forms:
53
54 -optionname=value (e.g., -STATIC=false)
55 -optionname:value (e.g., -STATIC:false)
56 -optionname (equivalent to -optionname=true. e.g., -STATIC)
57 -NOoptionname (equivalent to -optionname=false. e.g., -NOSTATIC)
58
59 Option settings are not case-sensitive, so one can say "-nOsTaTiC" instead
60 of "-NOSTATIC". Option values must be appropriate for the corresponding
61 option, and must be either an integer, a boolean, or a string value.
62
63 The integer valued options are:
64
65 LOOKAHEAD (default 1)
66 CHOICE_AMBIGUITY_CHECK (default 2)
67 OTHER_AMBIGUITY_CHECK (default 1)
68
69 The boolean valued options are:
70
71 STATIC (default true)
72 SUPPORT_CLASS_VISIBILITY_PUBLIC (default true)
73 DEBUG_PARSER (default false)
74 DEBUG_LOOKAHEAD (default false)
75 DEBUG_TOKEN_MANAGER (default false)
76 ERROR_REPORTING (default true)
77 JAVA_UNICODE_ESCAPE (default false)
78 UNICODE_INPUT (default false)
79 IGNORE_CASE (default false)
80 COMMON_TOKEN_ACTION (default false)
81 USER_TOKEN_MANAGER (default false)
82 USER_CHAR_STREAM (default false)
83 BUILD_PARSER (default true)
84 BUILD_TOKEN_MANAGER (default true)
85 TOKEN_MANAGER_USES_PARSER (default false)
86 SANITY_CHECK (default true)
87 FORCE_LA_CHECK (default false)
88 CACHE_TOKENS (default false)
89 KEEP_LINE_COLUMN (default true)
90
91 The string valued options are:
92
93 OUTPUT_DIRECTORY (default Current Directory)
94 TOKEN_EXTENDS (java.lang.Object)
95 TOKEN_FACTORY (java.lang.Object)
96 JDK_VERSION (1.5)
97 GRAMMAR_ENCODING (default file.encoding)
98
99 EXAMPLE:
100 javacc -STATIC=false -LOOKAHEAD:2 -debug_parser mygrammar.jj
101
102 ABOUT JavaCC:
103
104 JavaCC is a parser generator for the Java [tm] programming
105 language originally built by
106 Sriram Sankar (http://www.cs.stanford.edu/~sankar) and
107 Sreeni Viswanadha (http://www.cs.albany.edu/~sreeni).
108
109 %
110 </pre>
111 <p>
112 Any option may be set either on the command line as shown in the help message
113 above, or in the grammar file as described in
114 <a href="javaccgrm.html">JavaCC grammar syntax</a>.
115 The effect is exactly the same.
116 </p>
117 <p>
118 If the same option is set in both the
119 command line and the grammar file, then the option setting in the command
120 line takes precedence.
121 </p>
122
123 </body>
124 </html>