]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/grafite_parser/test_parser.ml
Huge commit with several changes:
[helm.git] / helm / software / components / grafite_parser / test_parser.ml
index 2deef1bd53a24fc78bef7b0e5eb7ccf6bcd22b37..c87d41ed582e69613ea5493004dd37838b585190 100644 (file)
@@ -41,7 +41,8 @@ let dump_xml t id_to_uri fname =
   prerr_endline (sprintf "dumping MathML to %s ..." fname);
   flush stdout;
   let oc = open_out fname in
-  let markup = CicNotationPres.render id_to_uri t in
+  let markup =
+   CicNotationPres.render ~lookup_uri:(CicNotationPres.lookup_uri id_to_uri)t in
   let xml_stream = CicNotationPres.print_xml markup in
   Xml.pp_to_outchan xml_stream oc;
   close_out oc
@@ -101,6 +102,8 @@ let process_stream istream =
                   prerr_endline
                    ("Unsupported statement: " ^
                      GrafiteAstPp.pp_statement
+                      ~map_unicode_to_tex:(Helm_registry.get_bool
+                        "matita.paste_unicode_as_tex")
                       ~term_pp:CicNotationPp.pp_term
                       ~lazy_term_pp:(fun _ -> "_lazy_term_here_")
                       ~obj_pp:(fun _ -> "_obj_here_")
@@ -118,7 +121,7 @@ let process_stream istream =
               (!char_count + x) (!char_count + y) msg)
         | exn ->
             prerr_endline
-              (sprintf "Uncaught exception: %s" (Printexc.to_string exn))
+              (sprintf "TestParser: Uncaught exception: %s" (Printexc.to_string exn))
        done
     with End_of_file -> ()