[antlr-interest] About the html grammar (and debugging)

Ric Klaren ric.klaren at gmail.com
Mon Aug 28 12:56:50 PDT 2006


Hi,

On 8/28/06, Şeref Arıkan <serefarikan at kurumsalteknoloji.com> wrote:
> Hi there,
> I have downloaded it, and it looks mostly fine, however, I'd like to
> learn how to use the -debug switch in antlr.

The -debug switch may not be usable anymore due to parseview not being
maintained anymore... There's an updated version of parseview at:

http://pts14043.pts.nl/antlr/parseview-2.7.1.zip

The parseview homepage is at:

http://www.javadude.com/tools/parseview/

The above maybe still works no idea.. don't ask me I've never used it.

There's a number of -trace switches to antlr which can help in debugging:

  -traceLexer        have lexer rules call traceIn/traceOut.
  -traceParser       have parser rules call traceIn/traceOut.
  -traceTreeParser   have tree parser rules call traceIn/traceOut.

You can override the methods used in tracing to tweak the output.

Cheers,

Ric


More information about the antlr-interest mailing list