On Tue, Jul 04, 2006 at 12:57:16PM -0700, Allison Randal wrote: > I'm writing a parser for a language that treats a double newline as a > statement terminator. It works if I make every rule a 'regex' (to turn > off smart whitespace). But I want spaces and tabs to act as smart > whitespace, and newlines to act as literal whitespace. I've > overloaded <ws> to match only spaces and tabs, but the grammar still > consumes newlines where it shouldn't consume newlines. For a simple > repeatable example, take the following grammar:
Overloading <ws> and other builtins was fixed in parrot and pugs approaching midnight (hackathon time) on 2006-06-29. If your parrot and pugs are both more recent than that, I'm not sure where the bug is. -kolibrie