Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > 589b38626859682dda0b4289ae4806af > files > 73

coccinelle-examples-1.0.7-2.mga7.i586.rpm

@initialize:ocaml@
x << virtual.x;
@@

let _ = Printf.printf "ocaml start: x is %s\n" x

@initialize:python@
x << virtual.x;
@@

print "python start: x is %s" % (x)

@@
@@

foo();

@script:ocaml@
@@
()

@finalize:ocaml@
x << virtual.x;
y << virtual.y;
@@

Printf.printf "ocaml end: x is %s\n" x;
Printf.printf "ocaml end: y is %s\n" y

@finalize:python@
x << virtual.x;
y << virtual.y;
z << virtual.z;
@@

print "python end: x is %s" % (x)
print "python end: y is %s" % (y)