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 calltraceIn/traceOut. every single one. π-traceParserβ has parser rules calltraceIn/traceOut. just the parser ones, we're being specific. πΈ-traceLexerβ has lexer rules calltraceIn/traceOut. lexer girlies rise. π-traceTreeParserβ has tree parser rules calltraceIn/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. πβ¨
π¦ where this page comes from
- debian bookworm: antlr 2.7.7+dfsg-12 Β· antlr2
- debian trixie: antlr 2.7.7+dfsg-14 Β· antlr2
- ubuntu jammy: antlr 2.7.7+dfsg-12 Β· antlr2
- ubuntu noble: antlr 2.7.7+dfsg-13build1 Β· antlr2
- ubuntu questing: antlr 2.7.7+dfsg-14build1
- ubuntu resolute: antlr 2.7.7+dfsg-14build2 Β· antlr2
- ubuntu stonking: antlr 2.7.7+dfsg-14build2 Β· antlr2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms