CUP(1)
π CUP(1) β the LALR parser generator for Java(tm), but make it a group chat π
okay bestie, sit DOWN, because we're talking about cup, and it's in section 1 of the General Commands Manual, and it is literally the moment. π
β¨ NAME β¨
cup β LALR parser generator for Java(tm) πβ¨
πΈ SYNOPSIS πΈ
cup [options] <file
yes the <file is real, she reads from standard input, no cap π
π¦ DESCRIPTION π¦
So this manual page documents the cup command, but like... briefly. It's giving "quick vibe check, not the whole saga." π
Real talk though: this manual page was written for the Debian GNU/Linux distribution (but literally anyone else can use it too, she's not gatekeeping π«Ά), and the reason it exists at all is that the original program does not have a manual page. Not one. Instead, it has documentation in HTML format β so if you want the full lore, go read /usr/share/doc/cup/manual.html. That's the main character document right there. π
π OPTIONS π
she has so many flags and every single one of them ate, no crumbs:
-packagename β specify the package the generated classes go in [defaultnone]. β¨-parsername β specify the parser class name [default"parser"]. π-symbolsname β specify the name for the symbol constant class [default"sym"]. π-nontermsβ put non terminals in the symbol constant class. π¦-expect# β the number of conflicts expected/allowed [default0]. π-compact_redβ compact tables by defaulting to the most frequent reduce. π-nowarnβ don't warn about useless productions, etc. π€«-nosummaryβ don't print the usual summary of parse states, etc. π-nopositionsβ don't propagate the left and right token position values. ππ«-progressβ print messages to indicate progress of the system. πβοΈπ¨-timeβ print time usage summary. β°-dump_grammarβ produce a human readable dump of the symbols and grammar. π-dump_statesβ produce a dump of the parse state machine. πΊοΈ-dump_tablesβ produce a dump of the parse tables. π-dumpβ produce a dump of all of the above. π₯ (yes, all of them, she's extra and we love her for it)
π SEE ALSO π
go read those too, bestie, it's a whole ecosystem π§
π AUTHORS π
The author of CUP is Scott E. Hudson <http://www.cc.gatech.edu/gvu/people/Faculty/Scott.E.Hudson.html>. Iconic. Legendary. Built the whole thing. π«Ά
This manual page was written by Vincent Renardias <vincent@waw.com>, for the Debian GNU/Linux system. Thank you Vincent for the documentation service, fr fr ππ
and that's the whole page, bestie β CUP(1), General Commands Manual, section 1, and yeah the footer is literally just CUP(1) and nothing else, she said "no date, no version, we're mysterious like that" π
β¨ periodt.
π¦ where this page comes from
- debian bookworm: cup 0.11b-20160615-2 Β· CUP-License
- debian trixie: cup 0.11b-20160615-3 Β· CUP-License
- ubuntu jammy: cup 0.11b-20160615-2 Β· CUP-License
- ubuntu noble: cup 0.11b-20160615-2 Β· CUP-License
- ubuntu questing: cup 0.11b-20160615-3
- ubuntu resolute: cup 0.11b-20160615-3build1 Β· CUP-License
- ubuntu stonking: cup 0.11b-20160615-3build1 Β· CUP-License
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms