Isabelle process wrapper -- interaction via external program.
authorwenzelm
Tue, 04 Dec 2007 22:49:45 +0100
changeset 25528 e67230c2b952
parent 25527 330ca6e1dca8
child 25529 7836278458e7
Isabelle process wrapper -- interaction via external program.
src/Pure/Tools/isabelle_process.ML
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Pure/Tools/isabelle_process.ML	Tue Dec 04 22:49:45 2007 +0100
@@ -0,0 +1,21 @@
+(*  Title:      Pure/Tools/isabelle_process.ML
+    ID:         $Id$
+    Author:     Makarius
+
+Isabelle process wrapper -- interaction via external program.
+*)
+
+signature ISABELLE_PROCESS =
+sig
+  val init: unit -> unit
+end;
+
+structure IsabelleProcess: ISABELLE_PROCESS =
+struct
+
+fun init () =
+  (Output.writeln_default ("ML_PID=" ^ string_of_pid (Posix.ProcEnv.getpid ()));
+  Isar.secure_main ());
+
+end;
+