# HG changeset patch # User blanchet # Date 1284558532 -7200 # Node ID ec989bd98fc836a73705947f94c7ed1bde6ede39 # Parent a055cffcf6fcd71904529cc82ef5562de82c1c02 use "Metis_" prefix rather than "Metis" structure; the prefix can then be used not only for structures but also signatures and functors. A few other changes were made to the script, to eliminate the need for "metis_env.ML". diff -r a055cffcf6fc -r ec989bd98fc8 src/Tools/Metis/make-metis --- a/src/Tools/Metis/make-metis Wed Sep 15 15:44:44 2010 +0200 +++ b/src/Tools/Metis/make-metis Wed Sep 15 15:48:52 2010 +0200 @@ -10,6 +10,16 @@ ( cat <&2 - "$THIS/scripts/mlpp" -c polyml "src/$FILE" | \ - perl -p -e 's/\b([A-Za-z]+\.[A-Za-z]+)/Metis.\1/g;' -e 's/\bfrag\b/Metis.frag/;' | \ - perl -p -e 's/\bref\b/Unsynchronized.ref/g;' - elif fgrep -q functor "src/$FILE" - then - "$THIS/scripts/mlpp" -c polyml "src/$FILE" | \ - perl -p -e 's/ union / op union /g;' -e 's/ subset / op subset /g;' | \ - perl -p -e 's/\bref\b/Unsynchronized.ref/g;' - else - echo -e "$FILE (local)" >&2 - echo "structure Metis = struct open Metis" - cat < "metis_env.ML" - "$THIS/scripts/mlpp" -c polyml "src/$FILE" | \ - perl -p -e 's/\bref\b/Unsynchronized.ref/g;' - echo "end;" - fi + echo -e "$FILE" >&2 + "$THIS/scripts/mlpp" -c polyml "src/$FILE" | \ + perl -p -e \ +'s/type name$/type name = string/;'\ +'s/\bref\b/Unsynchronized.ref/g;'\ +'s/\bPolyML.pointerEq\b/pointer_eq/g;'\ +'s/(? metis.ML