]> matita.cs.unibo.it Git - helm.git/commitdiff
added a pretty printing of the new object and use argv[1] as uri
authorEnrico Tassi <enrico.tassi@inria.fr>
Mon, 7 Apr 2008 10:53:05 +0000 (10:53 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Mon, 7 Apr 2008 10:53:05 +0000 (10:53 +0000)
helm/software/components/ng_kernel/rt.ml

index a7d95978416a7dd89b2868d1c16385dc7d4b6156..bdf182577bc437d50ae1ad16b46de12e1188bb24 100644 (file)
@@ -1,8 +1,10 @@
 let _ =
   Helm_registry.load_from "conf.xml";
-  let u = UriManager.uri_of_string "cic:/matita/tests/f.con" in
+  NCicPp.set_ppterm NCicPp.trivial_pp_term;
+  let u = UriManager.uri_of_string Sys.argv.(1) in
   let o, _ = CicEnvironment.get_obj CicUniv.oblivion_ugraph u in
   let l = OCic2NCic.convert_obj u o in
+  List.iter (fun o -> prerr_endline (NCicPp.ppobj o)) l;
   let objs = 
     List.flatten 
     (List.map NCic2OCic.convert_nobj l) in