]> matita.cs.unibo.it Git - helm.git/commitdiff
matitatop.ml is now a simple invocation of Toploop.loop and .ocamlinit is
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 28 Jun 2005 17:30:58 +0000 (17:30 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 28 Jun 2005 17:30:58 +0000 (17:30 +0000)
responsible to call MatitacLib.go or MatitacLib.main.

 Cons: .ocamlinit is more dirty
 Pros: it is possible to trace something even before doing a drop!

helm/matita/.ocamlinit
helm/matita/matitatop.ml

index 90f43857085b7d7651b00e4a945fa60a97173792..ba19e4e2df4fa6442cd3bddcd2474b21a14268ab 100644 (file)
 
 (* utility functions *)
 let go = MatitacLib.go;;
+
+(* let's go! *)
+let _ = 
+ if Array.length Sys.argv > 1 then
+   MatitacLib.main `TOPLEVEL
+ else
+   MatitacLib.go ()
+;;
index c9bf8d98220275ad48f632ae306cc98411bc0fe8..9e1698009cbbd908ed127632069645cb5734d946 100644 (file)
@@ -1,9 +1,3 @@
 let _ =
   let _ = Topdirs.dir_quit in
-  let _ = 
-   if Array.length Sys.argv > 1 then
-     MatitacLib.main `TOPLEVEL
-   else
-     MatitacLib.go ()
-  in
-   Toploop.loop Format.std_formatter
+  Toploop.loop Format.std_formatter