> +@ script:python r1 @
> +id;
> +@@
> +coccinelle.id = "id/* user comment */"

I am still looking for further clarification around this programming interface.

See also topics like the following:
* Propagating values back from Python script to SmPL rule with other 
metavariable
  type than “identifier”
  https://github.com/coccinelle/coccinelle/issues/86

* Reconsider programming interfaces for script-constructed metavariables
  https://github.com/coccinelle/coccinelle/issues/132

Regards,
Markus
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to