template based parser generator gets major speed boost
BCS
BCS at pathlink.com
Tue Apr 1 14:03:24 PDT 2008
Russell Lewis wrote:
> 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.
I /knew/ I saw that someplace! However the "=" doesn't work as a suffix.
Oh well. Thanks.
More information about the Digitalmars-d-announce
mailing list