[antlr-interest] new line character rule
dsfsdf fdsfdsf
eddie_antlr at yahoo.co.uk
Wed Nov 24 08:30:02 PST 2004
Hi
I have a white space rule
WS:( ' ' | '\t' | '\r' | '\n' ) ;
I want to create a seperate rule for the new line character
so i wrote
NL: ( '\n' | '\r'); and took out the \n and \r from the WS rule
I than hide these tokens in a filter and parse and do my
transformations.
However my genertaion fails.
Is there another way of writing a new line rule?
thanks
ed.
---------------------------------
ALL-NEW Yahoo! Messenger - all new features - even more fun!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20041124/8ef79ede/attachment.html
More information about the antlr-interest
mailing list