ANTLR(1)
β¨ NAME β¨
Okay bestie, welcome to ANTLR(1) π, the General Commands Manual entry that's about to become your new special interest ππ
ANTLR is short for ANother Tool for Language Recognition, and this is version 3 π¦
πΈ SYNOPSIS πΈ
antlr3 [args] file.g [ file2.g file3.g ...]
π DESCRIPTION π
Okay so ANTLR (ANother Tool for Language Recognition) is a parser generator, and it's literally iconic π It's built for reading, processing, executing, or translating structured text or binary files. People use it all the time to build languages, tools, and frameworks, no cap π₯ You give it a grammar, and it generates a parser that can build parse trees and walk them. Main character energy, fr fr β¨
Here are all the options, bestie. Don't skip any π«Ά
-o outputDirβ tell ANTLR where to put ALL the output you generate π-fo outputDirβ same vibe as-o, but it also forces even files with relative paths into that dir πͺ-lib dirβ tells ANTLR where to find your token files π§-dependβ generates file dependencies π-reportβ prints a report about the grammar(s) it processed π-printβ prints the grammar without the actions π-debugβ generates a parser that emits debugging events π-profileβ generates a parser that computes profiling info β±οΈ-traceβ generates a recognizer that traces rule entry and exit π΅οΈββοΈ-nfaβ generates an NFA for each rule π-dfaβ generates a DFA for each decision point π-message-format nameβ picks the output style for messages π-verboseβ generates ANTLR's version and other extra info π£-makeβ only builds if the generated files are older than the grammar, so no wasted work β»οΈ-versionβ prints the ANTLR version and then exits π-language Lβ overrides the language grammar option, and generatesLinstead π-Xβ shows the list of extended arguments π-Xgrtreeβ prints the grammar AST π³-Xdfaβ prints the DFA as text π-Xnopruneβ tests lookahead against EBNF block exit branches π§-Xnocollapseβ collapses incident edges into DFA states π«§-Xdbgconversionβ dumps lots of info during NFA conversion π΅βπ«-Xconversiontimeoutβ use this to restrict NFA conversion exponentiality β³-Xmultithreadedβ runs the analysis in 2 threads π§΅-Xnomergestopstatesβ do not merge stop states π-Xdfaverboseβ generates DFA states in DOT with NFA configs πΊοΈ-Xwatchconversionβ prints a message for each NFA before it converts ποΈ-XdbgSTβ puts tags at the start and stop of all templates in the output π·οΈ-Xnfastatesβ for nondeterminisms, lists the NFA states for each path π€οΈ-Xm mβ max number of rule invocations during conversion, default[4]π’-Xmaxdfaedges mβ max "comfortable" number of edges for a single DFA state, default[65534]πΈοΈ-Xmaxinlinedfastates mβ max DFA states before a table gets used instead of inlining, default[60]π-Xmaxswitchcaselabels mβ doesn't generateswitch()statements for DFAs bigger thanm, default[300]π«-Xminswitchalts mβ doesn't generateswitch()statements for DFAs smaller thanm, default[3]π ββοΈ-Xsavelexerβ doesn't delete the temporary lexers generated from combined grammars πΎ
π AUTHOR π
This manual page was written by Ludovic Claude <ludovic.claude@laposte.net> π
π¦ SEE ALSO π¦
java(1), runantlr(1), http://www.antlr.org/ π
And that's the whole tea, bestie π β¨ This page is from antlr, dated July 22, 2015, and it's still giving π«Άπ
π¦ where this page comes from
- debian bookworm: antlr3 3.5.3-1 Β· BSD-3-Clause
- debian trixie: antlr3 3.5.3-2 Β· BSD-3-Clause
- ubuntu jammy: antlr3 3.5.2-9 Β· BSD-3-Clause
- ubuntu noble: antlr3 3.5.3-2 Β· BSD-3-Clause
- ubuntu resolute: antlr3 3.5.3-4 Β· BSD-3-Clause
- ubuntu stonking: antlr3 3.5.3-4 Β· BSD-3-Clause
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms