template based parser generator gets major speed boost
Russell Lewis
webmaster at villagersonline.com
Tue Apr 1 10:48:33 PDT 2008
BCS wrote:
> I'm planing on adding "!" as a "not" suffix in dparse (if "Blah" can be
> parsed, fail, else continue from the same place) and I'm wondering if
> anyone would find the reverse useful (try to parse a "Foo", if it works,
> drop it, back up to where we started and continue, else fail). Also is
> there any suggestions as to what suffix to use?
PERL regular expressions have lookahead (and negative lookahead):
(?=pattern)
Matches pattern, but doesn't include pattern in the result
(?!pattern)
Will only succeed if pattern does *not* match.
More information about the Digitalmars-d-announce
mailing list