~ubuntu-branches/ubuntu/trusty/coccinelle/trusty

« back to all changes in this revision

Viewing changes to demos/hello/hello-python.cocci

  • Committer: Package Import Robot
  • Author(s): Євгеній Мещеряков
  • Date: 2012-08-19 20:40:52 UTC
  • mfrom: (7.2.8 experimental)
  • Revision ID: package-import@ubuntu.com-20120819204052-8cujknwy6cn8a6h6
Tags: 1.0.0~rc15.deb-1
* New upstream RC 
  - Do not build-depend on libsexplib-camlp4-dev and libextlib-ocaml-dev
    anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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);