cup(1) LALR parser generator for Java(tm)


cup [options] <file


This manual page documents briefly the cup command. This manual page was written for the Debian GNU/Linux distribution (but may be used by others), because the original program does not have a manual page. Instead, it has documentation in HTML format; see /usr/share/doc/cup/manual.html.


-package name
specify package generated classes go in [default none].
-parser name
specify parser class name [default "parser"].
-symbols name
specify name for symbol constant class [default "sym"]
put non terminals in symbol constant class.
-expect #
number of conflicts expected/allowed [default 0].
compact tables by defaulting to most frequent reduce.
don't warn about useless productions, etc.
don't print the usual summary of parse states, etc.
don't propagate the left and right token position values.
print messages to indicate progress of the system.
print time usage summary.
produce a human readable dump of the symbols and grammar.
produce a dump of parse state machine.
produce a dump of the parse tables
produce a dump of all of the above.


The author of CUP is Scott E. Hudson <>. This manual page was written by Vincent Renardias <[email protected]>, for the Debian GNU/Linux system.