permit multiline comments and strings in macros
[bpt/coccinelle.git] / demos / ocaml1.cocci
CommitLineData
174d1640
C
1@initialize:ocaml@
2let a = ref 0
3let _ = Printf.printf "starting ocaml\n"
4
5@r@
6expression x,a;
7@@
8
9f(x,a)
10
11@script:ocaml@
12y << r.x;
13yy << r.a;
14@@
15
16a := !a + 1;
17Printf.printf "%s and %s\n" y yy
18
19@script:ocaml@
20y << r.a;
21zz << r.x;
22@@
23
24a := !a + 1;
25Printf.printf "%s again and %s again \n" zz y
26
27@finalize:ocaml@
28Printf.printf "ending ocaml %d\n" !a