Backward running version look-behinds
noz.ka at akenotsuki.com
Thu Dec 31 11:48:54 UTC 2015
On Wed, 30 Dec 2015 14:56:56 -0800, Waldemar Horwat wrote:
> On 12/11/2015 13:16, Nozomu Katō wrote:
>> I wonder if the person who wrote the spec for RegExp is on this list. I
>> would like to ask one question: Was there any reason why the following
>> steps were defined in the present order:
>> 188.8.131.52 Alternative
>> The production Alternative :: Alternative Term evaluates as follows:
>> 1. Evaluate Alternative to obtain a Matcher m1.
>> 2. Evaluate Term to obtain a Matcher m2.
>> instead of:
>> The production Alternative :: Term Alternative evaluates as follows:
>> 1. Evaluate Term to obtain a Matcher m1.
>> 2. Evaluate Alternative to obtain a Matcher m2.
>> or, was it a matter of preference? If any side effect I am missing
>> exists in the latter order, I need to reconsider or abandon my compact
> Those appear to have equivalent behavior. I just picked one when
> writing the RegExp spec.
Thank you very much indeed for your comment. Then, my compact version is
likely to work expectedly.
But it was first demonstrated by Claude that modifying "184.108.40.206
Alternative" is the simplest way to support lookbehind assertions. So, I
think the spec for lookbehinds has basically been prepared by Claude.
More information about the es-discuss