HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
fa42997265a3cbd2ec8c95be4d4c718969a63fd9
[bpt/coccinelle.git]
/
demos
/
orgmode.cocci
1
@r@
2
position p1, p2;
3
identifier f;
4
expression E;
5
@@
6
7
f@p1(E@p2)
8
9
@ script:python @
10
p1 << r.p1;
11
p2 << r.p2;
12
f << r.f;
13
@@
14
15
cocci.print_main (p1)
16
cocci.print_sec (p2)
17
18
print ""
19
20
cocci.print_main (p1, "foo")
21
cocci.print_sec (p2, "foo")
22
23
print ""
24
25
cocci.print_main (p1, "foo", "ovl-face3")
26
cocci.print_sec (p2, "foo", "ovl-face4")