java -jar jtb-1.4.x.jar -h
: to view all available optionsjava -jar jtb-1.4.x.jar [CL_Option] -si
: to use system.in as the input filejava -jar jtb-1.4.x.jar [CL_Option] [input-file]
: to use input-file as the input fileoptions {(JTB_BOOL_OPT=(true|false); | JTB_STR_OPT="str";)*}
CL_Option | JTB_Option | Description |
-cl | JTB_CL=(true|false) | Print a list of the classes generated to standard out |
-d dir | JTB_D="dir" | Short for (and overwrites) "-nd dir/syntaxtree -vd dir/visitor" |
-dl | JTB_DL=(true|false) | Generate depth level info |
-e | JTB_E=(true|false) | Suppress JTB semantic error checking |
-f | JTB_F=(true|false) | Use descriptive node class field names |
-h | N/A | Display this help message and quit |
-ia | JTB_IA=(true|false) | Inline visitors accept methods on base classes |
-jd | JTB_JD=(true|false) | Generate JavaDoc-friendly comments in the nodes and visitor |
-nd dir | JTB_ND="dir" | Use dir as the package for the syntax tree nodes |
-np pkg | JTB_NP="pkg" | Use pkg as the package for the syntax tree nodes |
-ns class | JTB_NS="class" | Use class as the class which all node classes will extend |
-o file | JTB_o="file" | Use file as the filename for the annotated output grammar |
-p pkg | JTB_P="pkg" | Short for (and overwrites) "-np pkg.syntaxtree -vp pkg.visitor" |
-pp | JTB_PP=(true|false) | Generate parent pointers in all node classes |
-printer | JTB_PRINTER | Generate a syntax tree dumping visitor |
-si | N/A | Read from standard input rather than a file |
-scheme | JTB_SCHEME | Generate Scheme records representing the grammar and a Scheme tree building visitor |
-tk | JTB_TK=(true|false) | Generate special tokens into the tree |
-vd dir | JTB_VD="dir" | Use dir as the package for the default visitor classes |
-vp pkg | JTB_VP="pkg" | Use pkg as the package for the default visitor classes |
-w | JTB_W=(true|false ) | Do not overwrite existing files |