HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Coccinelle release 1.0.0-rc13
[bpt/coccinelle.git]
/
demos
/
hello
/
hello-python.cocci
1
@main@
2
type T;
3
parameter list P;
4
symbol printf;
5
expression E;
6
position p;
7
@@
8
9
T main(P) {
10
printf@p(E);
11
...
12
}
13
14
@script:python@
15
p << main.p;
16
@@
17
18
print("Hello at: %s" % p[0].line);