[antlr-interest] Is there a way to output tokenstream generated by lexer to a file?

Monty Zukowski monty at codetransform.com
Tue Jan 25 07:47:14 PST 2005


Nan Zhang wrote:
> say, tokens.txt, so that I could take a look at the token stream.
> Thanks.

One way would be to use -traceLexer when invoking ANTLR.
Another would be to make your own TokenStreamFilter which does that.

Monty


More information about the antlr-interest mailing list