On Thu, 14 Nov 2019, Markus Elfring wrote:

> I am looking for possibilities to reduce undesirable code duplication
> also for applications of the semantic patch language.
> How much common code can be put into SmPL constraints for this purpose
> (when the usage of SmPL disjunctions shows limitations so far)?
>
> Example:
> @replacement@
> binary operator bo = { +, * };
> expression x, y;
> @@
> +compute(
>          x
> -        bo
> +        ,
>          y
> +       )

I can't figure out what this is an example of?  What do you want to do?
Does this work or not?

julia

>
>
> Regards,
> Markus
> _______________________________________________
> Cocci mailing list
> [email protected]
> https://systeme.lip6.fr/mailman/listinfo/cocci
>
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to