matitaDisambiguator.cmi matitaDb.cmi matitaEngine.cmi
matitaEngine.cmx: matitaTypes.cmx matitaSync.cmx matitaMisc.cmx matitaLog.cmx \
matitaDisambiguator.cmx matitaDb.cmx matitaEngine.cmi
+matitaExcPp.cmo: matitaTypes.cmo matitaExcPp.cmi
+matitaExcPp.cmx: matitaTypes.cmx matitaExcPp.cmi
matitaGeneratedGui.cmo: matitaGeneratedGui.cmi
matitaGeneratedGui.cmx: matitaGeneratedGui.cmi
matitaGtkMisc.cmo: matitaTypes.cmo matitaGeneratedGui.cmi matitaGtkMisc.cmi
matitaGtkMisc.cmx: matitaTypes.cmx matitaGeneratedGui.cmx matitaGtkMisc.cmi
matitaGui.cmo: matitaTypes.cmo matitaScript.cmi matitaMisc.cmi matitaLog.cmi \
- matitaGtkMisc.cmi matitaGeneratedGui.cmi buildTimeConf.cmo matitaGui.cmi
+ matitaGtkMisc.cmi matitaGeneratedGui.cmi matitaExcPp.cmi \
+ buildTimeConf.cmo matitaGui.cmi
matitaGui.cmx: matitaTypes.cmx matitaScript.cmx matitaMisc.cmx matitaLog.cmx \
- matitaGtkMisc.cmx matitaGeneratedGui.cmx buildTimeConf.cmx matitaGui.cmi
+ matitaGtkMisc.cmx matitaGeneratedGui.cmx matitaExcPp.cmx \
+ buildTimeConf.cmx matitaGui.cmi
matitaLog.cmo: matitaLog.cmi
matitaLog.cmx: matitaLog.cmi
matitaMathView.cmo: matitaTypes.cmo matitaScript.cmi matitaMisc.cmi \
buildTimeConf.cmo \
matitaLog.cmo \
matitaTypes.cmo \
+ matitaExcPp.cmo \
matitaMisc.cmo \
matitaDb.cmo \
matitaSync.cmo \
buildTimeConf.cmo \
matitaLog.cmo \
matitaTypes.cmo \
+ matitaExcPp.cmo \
matitaMisc.cmo \
matitaDb.cmo \
matitaSync.cmo \
eval_from_stream status (Stream.of_string str) (fun _ _ -> ())
let default_options () =
+(*
let options =
StringMap.add "baseuri"
(String
(Helm_registry.get "matita.baseuri" ^ Helm_registry.get "matita.owner"))
no_options
in
+*)
let options =
StringMap.add "basedir"
(String (Helm_registry.get "matita.basedir" ))
- options
+ no_options
in
options
open MatitaTypes
let wrap_callback f = f
-(*
-let wrap_callback f () =
- try
- f ()
- with exn ->
- MatitaLog.error (sprintf "Uncaught exception: %s" (Printexc.to_string exn))
-*)
let connect_button (button: #GButton.button) callback =
ignore (button#connect#clicked (wrap_callback callback))
(* log *)
MatitaLog.set_log_callback self#console#log_callback;
GtkSignal.user_handler :=
- (fun exn ->
- MatitaLog.error
- (sprintf "Uncaught exception: %s" (Printexc.to_string exn)));
+ (fun exn -> MatitaLog.error (MatitaExcPp.to_string exn));
(* script *)
let _ =
match GSourceView.source_language_from_file BuildTimeConf.lang_file with
try
f ()
with exn ->
- fail (sprintf "Uncaught exception:\n%s" (Printexc.to_string exn))
+ fail (MatitaExcPp.to_string exn)
in
let handle_error' f = (fun () -> handle_error (fun () -> f ())) in
object (self)
with Failure _ ->
command_error (sprintf "Not an integer value \"%s\"" value))
in
- { status with options = StringMap.add name value status.options }
+ if StringMap.mem name status.options && name = "baseuri" then
+ command_error "Redefinition of 'baseuri' is forbidden."
+ else
+ { status with options = StringMap.add name value status.options }
(* subset of MatitaConsole.console methods needed by MatitaInterpreter *)
class type console =
| MatitaEngine.Drop
| CicTextualParser2.Parse_error _ as exn -> raise exn
| exn ->
- MatitaLog.error (Printexc.to_string exn);
+ MatitaLog.error (MatitaExcPp.to_string exn);
raise exn
let fname () =
(* test _with_ the WHD on the apply argument *)
+set "baseuri" "cic:/matita/tests/".
alias id "not" = "cic:/Coq/Init/Logic/not.con".
alias id "False" = "cic:/Coq/Init/Logic/False.ind#xpointer(1/1)".
+set "baseuri" "cic:/matita/tests/".
+
alias id "O" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/1)".
alias id "S" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/2)".
alias id "nat" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1)".
--- /dev/null
+set "baseuri" "cic:/matita/tests/".
+set "baseuri" "cic:/matita/tests/".
+set "baseuri" "cic:/matita/tests/".
+
inductive pos: Set \def
| one : pos
| next : pos \to pos.
(* *)
(****************************************************************************)
+set "baseuri" "cic:/matita/tests/".
+
(* commento che va nell'ast, ma non viene contato
come step perche' non e' un executable
*)
+set "baseuri" "cic:/matita/tests/".
+
alias id "O" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/1)".
alias id "nat" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1)".
alias id "S" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/2)".
+set "baseuri" "cic:/matita/tests/".
+
alias id "eq" = "cic:/Coq/Init/Logic/eq.ind#xpointer(1/1)".
alias id "n" = "cic:/Suresnes/BDD/canonicite/Canonicity_BDT/n.con".
alias id "nat" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1)".
+set "baseuri" "cic:/matita/tests/".
+
alias id "O" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/1)".
alias num (instance 0) = "natural number".
alias symbol "eq" (instance 0) = "leibnitz's equality".
-%% test per temperino.lang
+%% test per matita.lang
+
+set "baseuri" "cic:/matita/tests/".
%% commento
(* commento *)
+set "baseuri" "cic:/matita/tests/".
+
inductive nat : Set \def
O : nat
| S : nat \to nat.
intro. reflexivity.
simplify. intros.
discriminate H3.
-qed.
\ No newline at end of file
+qed.
+set "baseuri" "cic:/matita/tests/".
+
alias id "O" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/1)".
alias id "S" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/2)".
(* *)
(**************************************************************************)
+set "baseuri" "cic:/matita/tests/".
+
inductive True: Prop \def
I : True.
+set "baseuri" "cic:/matita/tests/".
+
inductive pos: Set \def
| one : pos
| next : pos \to pos.
+set "baseuri" "cic:/matita/tests/".
+
theorem a' : Prop \to Prop.intros.assumption.qed.
+set "baseuri" "cic:/matita/tests/".
+
record empty : Type \def {}.
inductive True : Prop \def I: True.
paolo : Type;
pippo : paolo \to paolo;
piero : True
-}.
\ No newline at end of file
+}.
+set "baseuri" "cic:/matita/tests/".
+
alias id "nat" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1)".
alias num (instance 0) = "natural number".
alias symbol "eq" (instance 0) = "leibnitz's equality".
simplify.
reflexivity.
qed.
-
\ No newline at end of file
+
+set "baseuri" "cic:/matita/tests/".
+
alias id "not" = "cic:/Coq/Init/Logic/not.con".
alias symbol "eq" (instance 0) = "leibnitz's equality".
theorem a :
intro. apply H.
symmetry.
exact H1.
-qed.
\ No newline at end of file
+qed.
+++ /dev/null
-set "baseuri" "cic:/matita/zack/aaa/".
-inductive nat:Set \def O:nat | S:nat \to nat.
-set "baseuri" "cic:/matita/zack/bbb/".
-inductive nat:Set \def O:nat | S:nat \to nat.
-alias id "nat" = "cic:/matita/zack/bbb/nat.ind#xpointer(1/1)".
-inductive c:Set \def c1: nat \to c.
+set "baseuri" "cic:/matita/tests/".
+
alias id "nat" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1)".
alias symbol "and" (instance 0) = "logical and".
alias symbol "eq" (instance 0) = "leibnitz's equality".
split.
reflexivity.
reflexivity.
-qed.
\ No newline at end of file
+qed.
+set "baseuri" "cic:/matita/tests/".
+
alias symbol "eq" (instance 0) = "leibnitz's equality".
theorem a:\forall x.x=x.
alias id "nat" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1)".
+set "baseuri" "cic:/matita/tests/".
+
(* commento che va nell'ast, ma non viene contato
come step perche' non e' un executable