HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Release coccinelle-0.1
[bpt/coccinelle.git]
/
tests
/
scripting
/
script4.cocci
1
@ rule1 @
2
type T; identifier I; constant C; expression E;
3
position p1, p2, p3, p4;
4
@@
5
T I@p2[C@p3];
6
<...
7
I[E@p4]
8
...>
9
@ script:python @
10
x << rule1.p3;
11
y << rule1.p4;
12
@@
13
print "%s:%s:%s:%s" % (x.location.file, x.location.line, x.location.column, x)
14
print "%s[%s]" % (x,y)