Re: Pattern matches one type of paren but not another

Maury Markowitz <[email protected]> Mon, 29 May 2023 08:35:31 -0400
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>
> On May 28, 2023, at 4:40 PM, Hans Åberg <[email protected]> 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?