]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/.ocamlinit
pretty printing of URIs
[helm.git] / helm / matita / .ocamlinit
index 90f43857085b7d7651b00e4a945fa60a97173792..f5c30f839a48a2067c2cea18122352c35f439bd9 100644 (file)
 #directory "../ocaml/xmldiff"
 
 (* custom printers *)
+let fppuri ppf uri =
+ let s = UriManager.string_of_uri uri in
+  Format.pp_print_string ppf s
+;;
+
 #install_printer CicMetaSubst.fppsubst;;
 #install_printer CicMetaSubst.fppterm;;
 #install_printer CicMetaSubst.fppmetasenv;;
+#install_printer fppuri;;
 
 (* utility functions *)
 let go = MatitacLib.go;;
+
+(* let's go! *)
+let _ = 
+ if Array.length Sys.argv > 1 then
+   MatitacLib.main `TOPLEVEL
+ else
+   MatitacLib.go ()
+;;