]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/grafite_parser/grafiteParser.mli
- matitacLib: better handling of the callbacks for the dump operation
[helm.git] / helm / software / components / grafite_parser / grafiteParser.mli
index b0dc6e8fd28e8b4a25bd51d0596b52809bac6adf..1413e93fd97409b96518496a0fcf993d61007fe7 100644 (file)
@@ -46,8 +46,13 @@ val parse_statement: Ulexing.lexbuf -> statement  (** @raise End_of_file *)
 
 val statement: unit -> statement Grammar.Entry.e
 
-(* this callback is called on every include command *)
-val set_callback: (string -> unit) -> unit 
+(* this callback is called before every grafite statement *)
+val set_grafite_callback:
+   (LexiconEngine.status -> ast_statement -> unit) -> unit 
+
+(* this callback is called before every lexicon command *)
+val set_lexicon_callback:
+   (LexiconEngine.status -> LexiconAst.command -> unit) -> unit 
 
 val push : unit -> unit
 val pop : unit -> unit