logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ANTLR - ANother Tool for Language Recognition, version 3

Author

       This manual page was written by Ludovic Claude <ludovic.claude@laposte.net>

Description

       ANTLR  (ANother  Tool for Language Recognition) is a parser generator for reading, processing, executing,
       or translating structured text or  binary  files.  It's  widely  used  to  build  languages,  tools,  and
       frameworks. From a grammar, ANTLR generates a parser that can build and walk parse trees.

       -ooutputDir
              specify output directory where all output generated.

       -fooutputDir
              same as -o but force even files with relative paths to dir.

       -libdir
              specify location of token files.

       -depend
              generate file dependencies.

       -report
              print out a report about the grammar(s) processed.

       -print print out the grammar without actions.

       -debug generate a parser that emits debugging events.

       -profile
              generate a parser that computes profiling information.

       -trace generate a recognizer that traces rule entry/exit.

       -nfa   generate an NFA for each rule.

       -dfa   generate a DFA for each decision point.

       -message-formatname
              specify output style for messages.

       -verbose
              generate ANTLR version and other information.

       -make  only build if generated files older than grammar.

       -version
              print the version of ANTLR and exit.

       -languageL
              override language grammar option; generate L

       -X     display the list of extended arguments

       -Xgrtree
              print the grammar AST

       -Xdfa  print DFA as text

       -Xnoprune
              test lookahead against EBNF block exit branches

       -Xnocollapse
              collapse incident edges into DFA states

       -Xdbgconversion
              dump lots of info during NFA conversion

       -Xconversiontimeout
              use to restrict NFA conversion exponentiality

       -Xmultithreaded
              run the analysis in 2 threads

       -Xnomergestopstates
              do not merge stop states

       -Xdfaverbose
              generate DFA states in DOT with NFA configs

       -Xwatchconversion
              print a message for each NFA before converting

       -XdbgST
              put tags at start/stop of all templates in output

       -Xnfastates
              for nondeterminisms, list NFA states for each path

       -Xmm  max number of rule invocations during conversion [4]

       -Xmaxdfaedgesm
              max "comfortable" number of edges for single DFA state [65534]

       -Xmaxinlinedfastatesm
              max DFA states before table used rather than inlining [60]

       -Xmaxswitchcaselabelsm
              don't generate switch() statements for dfas bigger than m [300]

       -Xminswitchaltsm
              don't generate switch() statements for dfas smaller than m [3]

       -Xsavelexer
              don't delete temporary lexers generated from combined grammars

Name

       ANTLR - ANother Tool for Language Recognition, version 3

See Also

java(1), runantlr(1), http://www.antlr.org/

antlr                                             July 22, 2015                                         ANTLR(1)

Synopsis

antlr3 [args] file.g [ file2.gfile3.g ...]

See Also