ANTLR(1)

πŸ’– ANTLR πŸ’–

okay bestie, gather round, because this is the antlr manual page and it's genuinely iconic. ANTLR? ANother Tool for Language Recognition. yeah. the name is a recursive acronym. it's giving nerd royalty, it's giving main character energy, and yes you're gonna learn it right now. 🫢


✨ NAME ✨

ANTLR β€” ANother Tool for Language Recognition πŸ¦‹


🌸 SYNOPSIS 🌸

java antlr.Tool or runantlr ["args"] file.g

so like, that's the whole vibe. you either invoke it through java antlr.Tool or you run runantlr with your ["args"] and your file.g. that's it, that's the summoning ritual. πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

okay so ANTLR, which literally stands for ANother Tool for Language Recognition β€” and yes it used to be called PCCTS, glow-up era, we love a rebrand β€” is a language tool that hands you a whole framework for constructing recognizers, compilers, and translators from grammatical descriptions that contain C++ or Java actions. no cap. you write the grammar, it builds the machine. obsessed. 😭

and now the flags, bestie, one by one, no skips, no summarising, we're doing all of them:

  • -o outputDir β€” tells it where to drop literally all the output. specify the output directory where everything gets generated. ✨
  • -glib superGrammar β€” points at where your supergrammar file lives. specify the location of the supergrammar file, that's the whole job. πŸŽ€
  • -debug β€” launches the ParseView debugger upon parser invocation. it's debug o'clock. πŸ›
  • -html β€” generates an html file from your grammar, and note the parenthetical bestie: minus actions. the actions do not come with. πŸ™ˆ
  • -diagnostic β€” generates a textfile with diagnostics. receipts, basically. πŸ’€
  • -trace β€” has all rules call traceIn/traceOut. every single one. πŸ’…
  • -traceParser β€” has parser rules call traceIn/traceOut. just the parser ones, we're being specific. 🌸
  • -traceLexer β€” has lexer rules call traceIn/traceOut. lexer girlies rise. πŸ’œ
  • -traceTreeParser β€” has tree parser rules call traceIn/traceOut. tree parser edition, slay. 🌈
bestie note: this is the whole list of options in this page. don't go inventing extra flags, i will find out. πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

this manual page was written by John Leuner <jewel@debian.org>. thank you for your service, legend. 🫢


πŸ’œ SEE ALSO πŸ’œ

go check them out, iykyk. ⭐


and that's the whole page, bestie! πŸ’– this one's from the GNU crew, dated December 22, 2001, and it lives as page ANTLR(1). periodt. πŸŽ€βœ¨