[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pattern matches one type of paren but not another
From: |
Maury Markowitz |
Subject: |
Re: Pattern matches one type of paren but not another |
Date: |
Mon, 29 May 2023 08:35:31 -0400 |
> On May 28, 2023, at 4:40 PM, Hans Åberg <haberg-1@telia.com> wrote:
>
> operator_value:
> VARIABLE_NAME '(' exprlist ')'
> | VARIABLE_NAME '[' exprlist ‘]’
> ;
*sigh*
The error was in my scanner. I had:
[:,;()[]\^=+\-*/\<\>\&] { return yytext[0]; }
Duh.
That said, am I missing a warning output? I realize it would be difficult to
warn on this, although empty sets inside a set does seem like something that
might be checked on?