X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaEngine.mli;h=2253748d95b61efd1f5a060743aed50c18e23e03;hb=3147daf418c31528a67462c77b4cb3fd6431289c;hp=9311215f3d563c0b6e729c456c133421d71231da;hpb=fddf15f1e9d253316bdcb854c2ff7ec64144bde8;p=helm.git diff --git a/helm/matita/matitaEngine.mli b/helm/matita/matitaEngine.mli index 9311215f3..2253748d9 100644 --- a/helm/matita/matitaEngine.mli +++ b/helm/matita/matitaEngine.mli @@ -24,24 +24,45 @@ *) exception Drop +exception UnableToInclude of string +exception IncludedFileNotCompiled of string -val eval_string: MatitaTypes.status ref -> string -> unit +type statement = + (CicNotationPt.term, CicNotationPt.term, GrafiteAst.reduction, GrafiteAst.obj, + string) + GrafiteAst.statement + +(* heavy checks slow down the compilation process but give you some interesting + * infos like if the theorem is a duplicate *) +val eval_string: + ?do_heavy_checks:bool -> + ?include_paths:string list -> + ?clean_baseuri:bool -> + MatitaTypes.status ref -> string -> unit val eval_from_stream: - MatitaTypes.status ref -> char Stream.t -> - (MatitaTypes.status -> - (CicAst.term,TacticAst.obj,string) TacticAst.statement -> unit) -> + ?do_heavy_checks:bool -> + ?include_paths:string list -> + ?clean_baseuri:bool -> + MatitaTypes.status ref -> Ulexing.lexbuf -> + (MatitaTypes.status -> statement -> unit) -> unit val eval_from_stream_greedy: - MatitaTypes.status ref-> char Stream.t -> - (MatitaTypes.status -> - (CicAst.term,TacticAst.obj,string) TacticAst.statement -> unit) -> + ?do_heavy_checks:bool -> + ?include_paths:string list -> + ?clean_baseuri:bool -> + MatitaTypes.status ref-> Ulexing.lexbuf -> + (MatitaTypes.status -> statement -> unit) -> unit val eval_ast: + ?do_heavy_checks:bool -> + ?include_paths:string list -> + ?clean_baseuri:bool -> MatitaTypes.status -> - (CicAst.term,TacticAst.obj,string) TacticAst.statement -> + statement -> MatitaTypes.status val initial_status: MatitaTypes.status lazy_t +