X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2FmatitaEngine.mli;h=bb4537d8db899fb34b71b89983aa7969bbc3c02e;hb=052140f5d87dabd49f798b5cf42e35e1df411db3;hp=a03d1e7dad2416f799ebc2f8fffee8fb949e57fd;hpb=4609a07e2fe4343d94832fcaf0936223f83ba71c;p=helm.git diff --git a/helm/software/matita/matitaEngine.mli b/helm/software/matita/matitaEngine.mli index a03d1e7da..bb4537d8d 100644 --- a/helm/software/matita/matitaEngine.mli +++ b/helm/software/matita/matitaEngine.mli @@ -25,7 +25,6 @@ val eval_ast : ?do_heavy_checks:bool -> - ?clean_baseuri:bool -> LexiconEngine.status -> GrafiteTypes.status -> string * int * @@ -40,15 +39,16 @@ val eval_ast : (* heavy checks slow down the compilation process but give you some interesting * infos like if the theorem is a duplicate *) +exception EnrichedWithLexiconStatus of exn * LexiconEngine.status + (* should be used only by the compiler since it looses the * disambiguation_context (text,prefix_len,_) *) val eval_from_stream : first_statement_only:bool -> include_paths:string list -> - ?prompt:bool -> ?do_heavy_checks:bool -> - ?clean_baseuri:bool -> ?enforce_no_new_aliases:bool -> (* default true *) + ?watch_statuses:(LexiconEngine.status -> GrafiteTypes.status -> unit) -> LexiconEngine.status -> GrafiteTypes.status -> Ulexing.lexbuf -> @@ -60,3 +60,5 @@ val eval_from_stream : (DisambiguateTypes.domain_item * DisambiguateTypes.codomain_item) option ) list +(* this callback is called on every grafite command *) +val set_callback: (GrafiteParser.ast_statement -> unit) -> unit