---
name: "cantlr"
section: "1"
platform: "linux"
package: "cantlr"
version: "2.7.7-16"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/cantlr"
---

# cantlr(1)

ANother Tool for Language Recognition

## NAME

ANTLR - ANother Tool for Language Recognition

## SYNOPSIS

**cantlr** \[*"args"*\] *file.g*\

## DESCRIPTION

ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a language tool that provides a framework for constructing recognizers, compilers, and translators from grammatical descriptions containing C++ or Java actions.

- **-o** *outputDir*

  specify output directory where all output generated.

- **-glib** *superGrammar*

  specify location of supergrammar file.

- **-debug**

  launch the ParseView debugger upon parser invocation.

- **-html**

  generate an html file from your grammar (minus actions).

- **-diagnostic**

  generate a textfile with diagnostics.

- **-trace**

  have all rules call traceIn/traceOut.

- **-traceParser**

  have parser rules call traceIn/traceOut.

- **-traceLexer**

  have lexer rules call traceIn/traceOut.

- **-traceTreeParser**

  have tree parser rules call traceIn/traceOut.

## AUTHOR

This manual page was written by John Leuner \<jewel@debian.org\>

## SEE ALSO

**http://www.antlr.org/**\
