On Tue, 5 Jul 2011, Ajay Panyala wrote: > + int x = init_val; > call_of_interest@p(...) > > I get the following parse error. > > ..whole content = int x = intial value: consider using coccinelle.varname
Indeed. See demos/pythontococci.cocci julia > Thanks > Ajay > > On Tue, Jul 5, 2011 at 12:36 PM, Julia Lawall <[email protected]> wrote: > > > @initialize:python@ > > > > count = 0 > > > > @r@ > > position p; > > @@ > > > > call_of_interest@p(...) > > > > @script:python s@ > > p << r.p; > > init_val; > > @@ > > > > count = count + 1 > > init_val = "%d" % count > > > > @@ > > position r.p; > > identifier s.init_val; > > @@ > > > > + int x = init_val; > > call_of_interest@p(...) > > > > julia > > > _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
