X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Fmatita.ml;h=2a87554d8f76bb2bf405e3b46e6ec8a539cd6263;hb=33a02e0b639217093eb63f30169aaa6ac8c78907;hp=72dff80581b73e641240e364384684bab9f1c37a;hpb=55e646b795e4a7beedf1263ea734477bd4762931;p=helm.git diff --git a/helm/matita/matita.ml b/helm/matita/matita.ml index 72dff8058..2a87554d8 100644 --- a/helm/matita/matita.ml +++ b/helm/matita/matita.ml @@ -29,9 +29,6 @@ open MatitaGtkMisc open MatitaTypes open MatitaMisc -(* ALB to link paramodulation... *) -let _ = Paramodulation.Saturation.init () - (** {2 Initialization} *) let _ = @@ -43,7 +40,8 @@ let _ = MatitamakeLib.initialize (); CicEnvironment.set_trust (* environment trust *) (let trust = Helm_registry.get_bool "matita.environment_trust" in - fun _ -> trust) + fun _ -> trust); + Paramodulation.Saturation.init () (** {2 GUI callbacks} *) @@ -82,6 +80,7 @@ let script = let _ = let cic_math_view = MatitaMathView.cicMathView_instance () in let sequents_viewer = MatitaMathView.sequentsViewer_instance () in + sequents_viewer#load_logo; cic_math_view#set_href_callback (Some (fun uri -> (MatitaMathView.cicBrowser ())#load (`Uri (UriManager.uri_of_string uri)))); @@ -92,12 +91,9 @@ let _ = | Incomplete_proof ((proof, goal) as status) -> sequents_viewer#load_sequents status; sequents_viewer#goto_sequent goal - | Proof proof -> - sequents_viewer#load_logo_with_qed - | No_proof -> - sequents_viewer#load_logo - | Intermediate _ -> - assert false (* only the engine may be in this state *) + | Proof proof -> sequents_viewer#load_logo_with_qed + | No_proof -> sequents_viewer#load_logo + | Intermediate _ -> assert false (* only the engine may be in this state *) in script#addObserver sequents_observer; script#addObserver browser_observer @@ -148,10 +144,16 @@ let _ = (UriManager.name_of_uri u ^ ":" ^ UriManager.name_of_uri s ^ " -> " ^ UriManager.name_of_uri t)) (CoercDb.to_list ())); + addDebugItem "print top-level grammar entries" + CicNotationParser.print_l2_pattern; + addDebugItem "dump moo to stderr" (fun _ -> + let status = (MatitaScript.instance ())#status in + List.iter (fun cmd -> prerr_endline + (GrafiteAstPp.pp_command cmd)) (List.rev status.moo_content_rev)); addDebugItem "rotate light bulbs" (fun _ -> let nb = gui#main#hintNotebook in - nb#goto_page ((nb#current_page + 1) mod 3)) + nb#goto_page ((nb#current_page + 1) mod 3)); end (** *)