Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 3.2 KB

antlr2.md

File metadata and controls

36 lines (25 loc) · 3.2 KB

antlr

antlr(name, debug, deps, diagnostic, docbook, html, imports, language, package, srcs, trace,
      traceLexer, traceParser, traceTreeParser)

Runs ANTLR 2 on a set of grammars.

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
debug Launch the ParseView debugger upon parser invocation. Unless you have downloaded and unzipped the debugger over the top of the standard ANTLR distribution, the code emanating from ANTLR with this option will not compile. Boolean optional False
deps The dependencies to use. Defaults to the final ANTLR 2 release, but if you need to use a different version, you can specify the dependencies here. List of labels optional [Label("@antlr2//jar:jar")]
diagnostic Generate a text file from your grammar with a lot of debugging info. Boolean optional False
docbook Generate a docbook SGML file from your grammar without actions and so on. It only works for parsers, not lexers or tree parsers. Boolean optional False
html Generate a HTML file from your grammar without actions and so on. It only works for parsers, not lexers or tree parsers. Boolean optional False
imports The grammar file to import. List of labels optional []
language The code generation target language. Either Cpp, CSharp, Java or Python (case-sensitive). String optional ""
package The package/namespace for the generated code. String optional ""
srcs The grammar files to process. List of labels optional []
trace Have all rules call traceIn/traceOut. Boolean optional False
traceLexer Have lexer rules call traceIn/traceOut. Boolean optional False
traceParser Have parser rules call traceIn/traceOut. Boolean optional False
traceTreeParser Have tree walker rules call traceIn/traceOut. Boolean optional False