]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaEngine.mli
*** empty log message ***
[helm.git] / helm / matita / matitaEngine.mli
index 3fcc4cc3ee7f864180f20c79398ec0bb4b8b9512..2253748d95b61efd1f5a060743aed50c18e23e03 100644 (file)
  * http://helm.cs.unibo.it/
  *)
 
-(*val eval_ast:*)
+exception Drop
+exception UnableToInclude of string
+exception IncludedFileNotCompiled of string
 
-val eval_string: MatitaTypes.status -> string -> MatitaTypes.status
+type statement =
+  (CicNotationPt.term, CicNotationPt.term, GrafiteAst.reduction, GrafiteAst.obj,
+   string)
+  GrafiteAst.statement
 
-val eval_from_stream: MatitaTypes.status -> char Stream.t -> MatitaTypes.status
+(* 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_ast: 
-  MatitaTypes.status -> (CicAst.term, string) TacticAst.statement ->
-    MatitaTypes.status
+val eval_from_stream: 
+  ?do_heavy_checks:bool ->
+  ?include_paths:string list ->
+  ?clean_baseuri:bool ->
+  MatitaTypes.status ref -> Ulexing.lexbuf -> 
+  (MatitaTypes.status -> statement -> unit) ->
+    unit
 
-val eval:
-  MatitaTypes.status -> (Cic.term, string) TacticAst.statement ->
+val eval_from_stream_greedy: 
+  ?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 ->
+    statement ->
     MatitaTypes.status
 
 val initial_status: MatitaTypes.status lazy_t