X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fmatita%2Fdump_moo.ml;h=05c21d40d51f18c008797bc58800117a0721b28e;hb=aa0d60227b785da3355b31519ba11cb4fbd2c925;hp=14dea3472a96ded9519d09d9fc6e65681e0a628b;hpb=595d77eece3202a799e786ac5996b6b1e25fac6e;p=helm.git diff --git a/helm/matita/dump_moo.ml b/helm/matita/dump_moo.ml index 14dea3472..05c21d40d 100644 --- a/helm/matita/dump_moo.ml +++ b/helm/matita/dump_moo.ml @@ -23,6 +23,8 @@ * http://helm.cs.unibo.it/ *) +(* $Id$ *) + open Printf let arg_spec = @@ -42,18 +44,15 @@ let _ = List.iter (fun fname -> if not (Sys.file_exists fname) then - MatitaLog.error (sprintf "Can't find moo '%s', skipping it." fname) + HLog.error (sprintf "Can't find moo '%s', skipping it." fname) else begin printf "%s:\n" fname; flush stdout; - let commands, metadata = MatitaMoo.load_moo ~fname in + let commands = GrafiteMarshal.load_moo ~fname in List.iter (fun cmd -> - printf " %s\n" (GrafiteAstPp.pp_command cmd); flush stdout) + printf " %s\n%!" + (GrafiteAstPp.pp_command ~obj_pp:(fun _ -> assert false) cmd)) commands; - List.iter - (fun m -> - printf " %s\n" (GrafiteAstPp.pp_metadata m); flush stdout) - metadata end) (List.rev !moos)