On Tue, 22 Sep 2020, Markus Elfring wrote:
> >> Can another report for a parsing error be reconsidered also for the
> >> following
> >> SmPL script variant?
> >>
> >> @display disable optional_storage@
> >> identifier i;
> >> type t;
> >> @@
> >> (
> >> *extern
> >> |
> >> *static
> >> )
> >> *t i(...)
> >> { ... }
> >
> > When you use a yacc generated parser, you don't have any control over
> > where it decides to report an error.
>
> How do you think about to choose an alternative parsing approach?
This question is completely absurd. Have you ever actually written
a parser?
>
> Would you find the shown case distinction useful?
Disjunctions could be added for extern and static. Feel free to propose a
patch.
julia
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci