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:

  • -package name β€” specify the package the generated classes go in [default none]. ✨
  • -parser name β€” specify the parser class name [default "parser"]. πŸ‘‘
  • -symbols name β€” 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 [default 0]. πŸ‘€
  • -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.