Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 1.0.0-rc20 is now available at http://coccinelle.lip6.fr/down…
…load.php This version is not compatible with previous ones, in that initialize and finalize rules now must have a region for declaring metavariables, just like other rules. Unfortunately, I neglected to update the demos accordingly, so there are a number of demos that now don't work. I will make a new release (rc21) that corrects that shortly. rc20 should be much faster if you need to include a ot of header files. In particular, we found substantial performance improvements (of around 30%) with the arguments --recursive-includes --relax-include path. Another significant improvement is that it is now possible to remove variable declarations that include more than one variable. For example: @@ @@ - int x; should transform int a,x,y; into int a,y; And @@ identifier x; @@ - int x; should completely remove int a,x,y;
- Loading branch information
Showing
79 changed files
with
4,618 additions
and
3,414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
int main () { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@initialize:ocaml@ | ||
x << virtual.x; | ||
@@ | ||
let _ = Printf.printf "ocaml start: x is %s\n" x | ||
@initialize:python@ | ||
x << virtual.x; | ||
@@ | ||
print "python start: x is %s" % (x) | ||
@@ | ||
@@ | ||
foo(); | ||
@script:ocaml@ | ||
@@ | ||
() | ||
@finalize:ocaml@ | ||
x << virtual.x; | ||
y << virtual.y; | ||
@@ | ||
Printf.printf "ocaml end: x is %s\n" x; | ||
Printf.printf "ocaml end: y is %s\n" y | ||
@finalize:python@ | ||
x << virtual.x; | ||
y << virtual.y; | ||
z << virtual.z; | ||
@@ | ||
print "python end: x is %s" % (x) | ||
print "python end: y is %s" % (y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.