Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 92d2bfb5a363004a8a399eefe5c79f14 > files > 104

coccinelle-examples-1.0.0-0.rc4.2.fc16.i686.rpm

@initialize:ocaml@
open Postgresql

(*
let conn =
    let conninfo = "" in
    new Postgresql.connection ~conninfo ()
*)

@r@
identifier f;
expression x,a;
@@

f(x,a)

@script:ocaml@
f << r.f;
y << r.x;
yy << r.a;
@@

if Str.string_match (Str.regexp "^foo") f 0
then Printf.eprintf "Fct '%s' matchs \"^foo\"\n" f
else Printf.eprintf "Fct '%s' does not match \"^foo\"\n" f

@finalize:ocaml@
()

(*
conn#finish
*)