let _ =
Helm_registry.load_from BuildTimeConf.matita_conf;
+ CicNotation.load_notation BuildTimeConf.core_notation_script;
Http_getter.init ();
MetadataTypes.ownerize_tables (Helm_registry.get "matita.owner");
MatitaDb.create_owner_environment ();
MatitamakeLib.initialize ();
GtkMain.Rc.add_default_file BuildTimeConf.gtkrc_file; (* loads gtk rc *)
ignore (GMain.Main.init ());
-
- (* environment trust *)
- CicEnvironment.set_trust
+ CicEnvironment.set_trust (* environment trust *)
(let trust = Helm_registry.get_bool "matita.environment_trust" in
fun _ -> trust)
let script =
MatitaScript.script
- ~buffer:gui#sourceView#buffer
+ ~view:(gui#sourceView :> GText.view)
~init:(Lazy.force MatitaEngine.initial_status)
~mathviewer:(MatitaMathView.mathViewer ())
~urichooser:(fun uris ->
if script#onGoingProof () then
MatitaLog.debug (CicMetaSubst.ppmetasenv script#proofMetasenv []));
addDebugItem "dump coercions Db" (fun _ ->
- List.iter (
- fun (s,t,u) ->
- MatitaLog.debug (
- UriManager.name_of_uri u ^ ":" ^
- UriManager.name_of_uri s ^ " -> " ^ UriManager.name_of_uri t))
- (CoercDb.to_list ())
- );
+ List.iter
+ (fun (s,t,u) ->
+ MatitaLog.debug
+ (UriManager.name_of_uri u ^ ":"
+ ^ UriManager.name_of_uri s ^ " -> " ^ UriManager.name_of_uri t))
+ (CoercDb.to_list ()));
addDebugItem "rotate light bulbs"
(fun _ ->
let nb = gui#main#hintNotebook in
- nb#goto_page ((nb#current_page + 1) mod 3));
- (*
- addDebugItem "print (on stdout) \"statement\" grammar entry"
- (fun _ ->
- Grammar.print_entry Format.std_formatter
- (Grammar.Entry.obj CicTextualParser2.statement);
- Format.pp_print_flush Format.std_formatter ());*)
+ nb#goto_page ((nb#current_page + 1) mod 3))
end
(** </DEBUGGING> *)