On Mon, 6 Aug 2012, Michael Stefaniuc wrote:
> Hello,
>
> are there any plans for operator alternations or even operator
> metavariables? I have a small janitorial work where it would have been
> nicer to have them:
>
> @@
> expression E1, E2;
> @@
> E1 \(==\|!=\|<\|<=\|>\|>=\) E2
> - ? TRUE : FALSE
>
> as opposed to
> \(E1==E2\|E1!=E2\|...
I tried this, but it makes lots of shift/reduce conflicts for the parser.
Maybe the metavariable idea could work.
julia
>
>
> Specifying the operators as
> @@
> operator op = {"==", "!=", "<", "<=", ">", ">="};
> expression E1, E2;
> @@
> E1 op E2
> - ? TRUE : FALSE
>
> would be nice too.
>
>
> thanks
> bye
> michael
> _______________________________________________
> Cocci mailing list
> [email protected]
> http://lists.diku.dk/mailman/listinfo/cocci
> (Web access from inside DIKUs LAN only)
>
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)