Pegged, a Parsing Expression Grammar (PEG) generator in D
Philippe Sigaud
philippe.sigaud at gmail.com
Sun Mar 11 10:13:25 PDT 2012
> Quick question, you mention the ability to opt-out of the
space-insensitivity, where might one find this?
Yes, undocumented. Use the '>' operator.
You know, I introduced space-insensitivity recently, to simplify some rules
and it keeps biting me back.
For example
Line <- (!EOL .)* EOL
The catch is, the (!EOL .) sequence accepts spaces (so, line terminators)
between the !EOL and the .
Crap.
So, I keep writing
Line <- (!EOL > .)* EOL
And I'm more and more convinced that ws a bbad move on my part. Or, at
least, give the user a way to opt-out for an entire rule.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20120311/06cc7233/attachment.html>
More information about the Digitalmars-d-announce
mailing list