script#addObserver sequents_observer;
script#addObserver browser_observer
- (** <DEBUGGING> *)
+ (** {{{ Debugging *)
let _ =
if BuildTimeConf.debug then begin
gui#main#debugMenu#misc#show ();
addDebugItem "dump metasenv"
(fun _ ->
if script#onGoingProof () then
- MatitaLog.debug (CicMetaSubst.ppmetasenv script#proofMetasenv []));
+ MatitaLog.debug (CicMetaSubst.ppmetasenv [] script#proofMetasenv));
addDebugItem "dump coercions Db" (fun _ ->
List.iter
(fun (s,t,u) ->
let nb = gui#main#hintNotebook in
nb#goto_page ((nb#current_page + 1) mod 3));
end
-
- (** </DEBUGGING> *)
+ (** Debugging }}} *)
let _ =
at_exit (fun () -> print_endline "\nThanks for using Matita!\n");
if Filename.basename Sys.argv.(0) = "cicbrowser" then begin (* cicbrowser *)
Helm_registry.set "matita.mode" "cicbrowser";
let browser = MatitaMathView.cicBrowser () in
- let entry =
+ let uri =
try
- `Uri (UriManager.uri_of_string Sys.argv.(1))
- with Invalid_argument _ -> `Dir "cic:/"
+ String.concat " " (List.tl (Array.to_list Sys.argv))
+ with Failure _ -> "cic:/"
in
- browser#load entry
+ browser#loadInput uri
end else begin (* matita *)
Helm_registry.set "matita.mode" "matita";
(try
GtkThread.main ()
with Sys.Break -> ()
+(* vim:set foldmethod=marker: *)
if metasenv <> [] then
command_error (
"metasenv not empty while giving a definition with body: " ^
- CicMetaSubst.ppmetasenv metasenv []);
+ CicMetaSubst.ppmetasenv [] metasenv);
let status = MatitaSync.add_obj uri obj status in
match obj with
Cic.Constant _ -> status