$ antlr
Antlr parser generator Version 1.33MR33 1989-2001
antlr [options] f1 f2 ... fn
-CC Generate C++ output (default=FALSE)
-cr Generate cross reference (default=FALSE)
-ck ___ Set compressed lookahead depth; fast approximate lookahead
-e1 Ambiguities/errors shown in low detail (default)
-e2 Ambiguities/errors shown in more detail
-e3 Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)
-f ___ Read names of grammar files from specified file
-fe ___ Rename err.c
-fh ___ Rename stdpccts.h header (turns on -gh)
-fl ___ Rename lexical output--parser.dlg
-fm ___ Rename mode.h
-fr ___ Rename remap.h
-ft ___ Rename tokens.h
-ga Generate ANSI-compatible code (default=FALSE)
-gc Do not generate output parser code (default=FALSE)
-gd Generate code to trace rule invocation (default=FALSE)
-ge Generate an error class for each non-terminal (default=FALSE)
-gh Generate stdpccts.h for non-ANTLR-generated-files to include
-gk Generate parsers that delay lookahead fetches until needed
-gl Generate line info about grammar actions in C parser
-glms Like -gl but replace '\' with '/' in #line filenames for MS C/C++ systems
-gp ___ Prefix all generated rule functions with a string
-gs Do not generate sets for token expression lists (default=FALSE)
-gt Generate code for Abstract-Syntax-Trees (default=FALSE)
-gx Do not generate lexical (dlg-related) files (default=FALSE)
-gxt Do not generate tokens.h (default=FALSE)
-k ___ Set full LL(k) lookahead depth (default==1)
-o ___ Directory where all output files should go (default=".")
-p Print out the grammar w/o actions (default=no)
-pa Print out the grammar w/o actions & w/FIRST sets (default=no)
-pr no longer used; predicates employed if present
-prc ___ Turn on/off computation of context for hoisted predicates
-rl ___ Limit max # of tree nodes used by grammar analysis
-stdout Send grammar.c/grammar.cpp to stdout
-tab ___ Width of tabs (1 to 8) for grammar.c/grammar.cpp files
-w1 Set the warning level to 1 (default)
-w2 Ambiguities yield warnings even if predicates or (...)? block
-mrhoist ___ Turn on/off k=1 Maintenance Release style hoisting
-mrhoistk___ Turn on/off k>1 EXPERIMENTAL Maintenance Release style hoisting
-aa ___ Ambiguity aid for a rule (rule name or line number)
-aam Lookahead token may appear multiple times in -aa listing
-aad ___ Limits exp growth of -aa listing - default=1 (max=ck value)
-info ___ Extra info: p=pred t=tnodes f=first/follow m=monitor o=orphans 0=noop
-treport ___ Report when tnode usage exceeds value during ambiguity resolution
-newAST In C++ mode use "newAST(...)" rather than "new AST(...)"
-tmake In C++ mode use parser's tmake method rather than "ASTBase::tmake(...)"
-alpha Provide additional information for "(alpha)? beta" error messages
-mrblkerr EXPERIMENTAL change to (...)* and (...)+ syntax error sets
-nopurify Don't use the notorious PURIFY macro (replaced by MR23 initial value syntax)
to zero return arguments of rules
- Read grammar from stdin |