put Isabelle-specifics in a "PortableIsabelle" file maintained by us;
authorblanchet
Thu, 16 Sep 2010 07:54:18 +0200
changeset 39447 61033a8004e2
parent 39446 7ed24d2dc7de
child 39448 64639ff50fcd
put Isabelle-specifics in a "PortableIsabelle" file maintained by us; as recommended by Joe Hurd
src/Tools/Metis/PortableIsabelle.sml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Tools/Metis/PortableIsabelle.sml	Thu Sep 16 07:54:18 2010 +0200
@@ -0,0 +1,26 @@
+(*  Title:      Tools/Metis/PortableIsabelle.sml
+    Author:     Jasmin Blanchette, TU Muenchen
+    Copyright   2010
+
+Isabelle-specific setup for Metis. Based on "src/PortablePolyml.sml".
+*)
+
+structure Portable :> Portable =
+struct
+
+val ml = "isabelle"
+
+fun pointerEqual (x : 'a, y : 'a) = pointer_eq (x, y)
+
+fun critical e () = NAMED_CRITICAL "metis" e
+
+val randomWord = Random.nextWord
+val randomBool = Random.nextBool
+val randomInt = Random.nextInt
+val randomReal = Random.nextReal
+
+fun time f x = f x (* dummy *)
+
+end
+
+datatype 'a frag = QUOTE of string | ANTIQUOTE of 'a