Re: An easy-to-miss error

"C. M. Sperberg-McQueen" <cmsmcq@blackmesatech.com> writes:
> Norm Tovey-Walsh <norm@saxonica.com> writes:
>
>> ... The interesting part is the easy-to-overlook error. ...
>
>> Here’s a hint. It’s in this rule: comment = -'{', ~[{}]*, -'}'.
>> ...
>> That middle bit is a exclusion that contains an empty comment, not an
>> exclusion that excludes ‘{‘ and ‘}’.
>
> Good eye!  I confess that I didn't find the error until after you told
> me which rule to focus on.

I only found it because the optimizer I’m trying to work on attempted to
construct a regular expression for ~[] and failed.

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh
Saxonica

Received on Saturday, 4 November 2023 16:13:29 UTC