val eval_ast :
?do_heavy_checks:bool ->
- ?clean_baseuri:bool ->
LexiconEngine.status ->
GrafiteTypes.status ->
string * int *
(* 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 ->
(DisambiguateTypes.domain_item * DisambiguateTypes.codomain_item) option
) list
+(* this callback is called on every grafite command *)
+val set_callback: (GrafiteParser.ast_statement -> unit) -> unit