[antlr-interest] About the html grammar (and debugging)
ric.klaren at gmail.com
Mon Aug 28 12:56:50 PDT 2006
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:
The parseview homepage is at:
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.
More information about the antlr-interest