in reply to Using Parse::RecDescent to parse Perl-ish strings without resorting to string eval
quoted_string: '"' m{(([\\]"|[^"])*)} '"'
I hope your never have spaces after the first """ in the text you are parsing, or did you change <skip>?
It's best to avoid separating a token into multiple items. It's rarely necessary or even easier.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using Parse::RecDescent to parse Perl-ish strings without resorting to string eval
by polypompholyx (Chaplain) on Feb 29, 2008 at 20:08 UTC | |
by ikegami (Patriarch) on Feb 29, 2008 at 20:20 UTC | |
by polypompholyx (Chaplain) on Feb 29, 2008 at 20:25 UTC |