Hi Gavin, On Sun, Feb 15, 2009 at 12:41 PM, Gavin Lambert wrote: > Since PHRASE is a lexer rule, it is at the same "level" as the WHITESPACE > rule, and thus whitespace isn't magically removed from the character stream > (like it would be if it were a parser rule instead). > <snip /> > The simplest thing to do is simply to define a PHRASE as anything at all > within quotes: > > PHRASE > : '"' .* '"' > ;
Thanks a ton, this understanding was indeed what I was missing. It is now working as expected :) Regards, Swaroop List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
