## antlr

antlr(name, Xconversiontimeout, Xdbgconversion, Xdbgst, Xdfa, Xdfaverbose, Xgrtree, Xm,
      Xmaxdfaedges, Xmaxinlinedfastates, Xminswitchalts, Xmultithreaded, Xnfastates, Xnocollapse,
      Xnomergestopstates, Xnoprune, XsaveLexer, Xwatchconversion, debug, depend, deps, dfa, dump,
      imports, language, message_format, nfa, package, profile, report, srcs, trace)

Runs [ANTLR 3](https://www.antlr3.org//) on a set of grammars.

### Attributes

       name
               Name (https://bazel.build/docs/build-ref.html#name); required
        
          A unique name for this target.

       Xconversiontimeout
               Integer; optional
        
          Set NFA conversion timeout for each decision.

       Xdbgconversion
               Boolean; optional
        
          Dump lots of info during NFA conversion.

       Xdbgst
               Boolean; optional
        
          Put tags at start/stop of all templates in output.

       Xdfa
               Boolean; optional
        
          Print DFA as text.

       Xdfaverbose
               Boolean; optional
        
          Generate DFA states in DOT with NFA configs.

       Xgrtree
               Boolean; optional
        
          Print the grammar AST.

       Xm
               Integer; optional
        
          Max number of rule invocations during conversion.

       Xmaxdfaedges
               Integer; optional
        
          Max "comfortable" number of edges for single DFA state.

       Xmaxinlinedfastates
               Integer; optional
        
          Max DFA states before table used rather than inlining.

       Xminswitchalts
               Integer; optional
        
          Don't generate switch() statements for dfas smaller than given number.

       Xmultithreaded
               Boolean; optional
        
          Run the analysis in 2 threads.

       Xnfastates
               Boolean; optional
        
          For nondeterminisms, list NFA states for each path.

       Xnocollapse
               Boolean; optional
        
          Collapse incident edges into DFA states.

       Xnomergestopstates
               Boolean; optional
        
          Max DFA states before table used rather than inlining.

       Xnoprune
               Boolean; optional
        
          Do not test EBNF block exit branches.

       XsaveLexer
               Boolean; optional
        
          For nondeterminisms, list NFA states for each path.

       Xwatchconversion
               Boolean; optional
        
          Don't delete temporary lexers generated from combined grammars.

       debug
               Boolean; optional
        
          Generate a parser that emits debugging events.

       depend
               Boolean; optional
        
          Generate file dependencies; don't actually run antlr.

       deps
               List of labels (https://bazel.build/docs/build-ref.html#labels); optional
        
          The dependencies to use. Defaults to the most recent ANTLR 3 release,
but if you need to use a different version, you can specify the
dependencies here.

       dfa
               Boolean; optional
        
          Generate a DFA for each decision point.

       dump
               Boolean; optional
        
          Print out the grammar without actions.

       imports
               List of labels (https://bazel.build/docs/build-ref.html#labels); optional
        
          The grammar and .tokens files to import. Must be all in the same directory.

       language
               String; optional
        
          The code generation target language. Either C, Cpp, CSharp2, CSharp3, JavaScript, Java, ObjC, Python, Python3 or Ruby (case-sensitive).

       message_format
               String; optional
        
          Specify output style for messages.

       nfa
               Boolean; optional
        
          Generate an NFA for each rule.

       package
               String; optional
        
          The package/namespace for the generated code.

       profile
               Boolean; optional
        
          Generate a parser that computes profiling information.

       report
               Boolean; optional
        
          Print out a report about the grammar(s) processed.

       srcs
               List of labels (https://bazel.build/docs/build-ref.html#labels); required
        
          The grammar files to process.

       trace
               Boolean; optional
        
          Generate a parser with trace output. If the default output is not enough, you can override the traceIn and traceOut methods.

