[antlr-interest] Trouble with ANTLR 3 grammar

Terence Parr parrt at cs.usfca.edu
Fri Jun 30 11:51:38 PDT 2006


On Jun 30, 2006, at 11:43 AM, Emond Papegaaij wrote:
> I'm printing the tokens (for debugging) before parsing with a  
> simple while
> loop. Maybe this is causing the problem? I've included the  
> Main.java that,
> together with the grammar included in my first mail in this thread,  
> triggers
> the problem.

That should be ok; you can try tokens.toString() but that only prints  
the text by default.

Hmm...so when you print that stuff, the channel shows 99 on the  
whitespace right before going to the parser?

Ter


More information about the antlr-interest mailing list