Commit 587d48b
committed
Add dev tool to generate dummy migration
This tool is inspired from the omp version of old.
It is invoked as follows:
```
dune exec -- dev/gencopy/gencopy.exe astlib/ast_X.ml astlib/ast_Y.ml > migrate_X_Y.ml
```
It will generates deep "copy" functions from ast version X to version Y.
These are dummy function that are generated under the assumption that
the ast types in X and Y are identical.
When adding support for new compiler versions, this should be used as a
base to be editted, following the compiler errors that will point to AST
nodes that actually differ between the two versions.
Signed-off-by: Nathan Rebours <[email protected]>1 parent 85b8a7f commit 587d48b
File tree
8 files changed
+407
-1
lines changed- astlib
- dev
- gencopy
- src
8 files changed
+407
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1264 | 1264 | | |
1265 | 1265 | | |
1266 | 1266 | | |
1267 | | - | |
| 1267 | + | |
1268 | 1268 | | |
1269 | 1269 | | |
1270 | 1270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
1 | 12 | | |
2 | 13 | | |
3 | 14 | | |
| |||
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments