[antlr-interest] Newline not recognized
Cory Isaacson
cory.isaacson at compuflex.com
Sun Jan 13 21:36:55 PST 2008
I have a rule like this:
r : MYSTARTTOKEN '\n' NEXTTOKEN ;
When I parse it doesn't see the '\n' char.
If I put the '\n' into to Lexer rule like this:
NEXTTOKEN : '\n' 'xyz' ;
It works fine, but this won't meet my needs as I need to get the text of
NEXTTOKEN (without the newline).
Any idea what is wrong in what I'm doing?
Cory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080113/f5733573/attachment.html
More information about the antlr-interest
mailing list