All of lore.kernel.org
 help / color / mirror / Atom feed
From: cocci@junktrap.net (Anthony)
To: cocci@systeme.lip6.fr
Subject: [Cocci] python variable in spatch
Date: Wed, 29 May 2013 14:57:51 +0200	[thread overview]
Message-ID: <CAKGFgN3p6BLbeF86p-7mTp=H3z6=J88Q_d4ffmeyBx0Ln5O_9A@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1305291222330.2246@hadrien>

On Wed, May 29, 2013 at 12:23 PM, Julia Lawall <julia.lawall@lip6.fr> wrote:
> On Wed, 29 May 2013, Anthony wrote:
>
>> Hi,
>>
>> I would like to apply a semantic patch which will include some values
>> generated through a @script:python@ block, but I didn't succeed so
>> far.
>> e.g.: update variable names based on a csv file, parsed in a python block.
>> Any idea someone ?
>
> Did you take a look at demos/pythontococci.cocci ?
>
> If that didn't help, please send an example that causes problems.
>
> julia

It helped, I got something (almost) working now, thank you !

Anthony

      reply	other threads:[~2013-05-29 12:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-29 10:20 [Cocci] python variable in spatch Anthony
2013-05-29 10:23 ` Julia Lawall
2013-05-29 12:57   ` Anthony [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKGFgN3p6BLbeF86p-7mTp=H3z6=J88Q_d4ffmeyBx0Ln5O_9A@mail.gmail.com' \
    --to=cocci@junktrap.net \
    --cc=cocci@systeme.lip6.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.