in reply to Re: Parse::RecDescent: problem with grammar and error reporting
in thread Parse::RecDescent: problem with grammar and error reporting
The suggestion doesn't work, it fails at "Even more test address@test.com @20". I guess it's because \S is not a zero-width assertion, it actually wants a non-whitespace character, but those were already gobbled up by [^@\n]*.
"foo bar@" should be allowed.
Interestingly, this version does print the error messages, but I don't understand why.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Parse::RecDescent: problem with grammar and error reporting
by JavaFan (Canon) on Jan 20, 2012 at 12:12 UTC | |
by kikuchiyo (Hermit) on Jan 20, 2012 at 12:44 UTC | |
by JavaFan (Canon) on Jan 20, 2012 at 13:18 UTC | |
by kikuchiyo (Hermit) on Jan 20, 2012 at 13:56 UTC |