diff options
author | martinw | 2001-03-02 10:40:04 +0000 |
---|---|---|
committer | martinw | 2001-03-02 10:40:04 +0000 |
commit | 00711bc84de8de73a05f779beb0b089b33d201eb (patch) | |
tree | 9c7dd9aa5834130a700e7ad644ff3065f16a4727 /portToNewSyntax/portToNewSyntax.dcl | |
parent | *** empty log message *** (diff) |
new modules to build a cocl that reads Clean 1.3 sources and as a sideeffect
produces sources in which the explicit import statements have been
ported to 2.0 syntax ("coclPort" application)
git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@312 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d
Diffstat (limited to 'portToNewSyntax/portToNewSyntax.dcl')
-rw-r--r-- | portToNewSyntax/portToNewSyntax.dcl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/portToNewSyntax/portToNewSyntax.dcl b/portToNewSyntax/portToNewSyntax.dcl new file mode 100644 index 0000000..ebec5e4 --- /dev/null +++ b/portToNewSyntax/portToNewSyntax.dcl @@ -0,0 +1,22 @@ +definition module portToNewSyntax + +from StdMisc import abort +//1.3 +from StdFile import Files +from StdString import String +from scanner import SearchPaths +//3.1 +/*2.0 +from StdFile import :: Files +from scanner import :: SearchPaths +0.2*/ +import checksupport + +switch_port_to_new_syntax port dont_port :== port + +cTabWidth :== 4 + +writeExplImportsToFile :: !String ![([Declaration],a)] !{#u:DclModule} !*CheckState + -> (!{#u:DclModule},!.CheckState) + +createPortedFiles :: !String !SearchPaths !*Files -> (!Bool, !*Files) |