]> matita.cs.unibo.it Git - helm.git/blobdiff - components/grafite_parser/grafiteParser.mli
More progress in technicalities/setoids.ma.
[helm.git] / components / grafite_parser / grafiteParser.mli
index 6a1980011409c790625df02005b9cb17d70c26ae..f38f0e5dc3e4dde8a76ee9e95c5b5a141c94ad03 100644 (file)
 
 type 'a localized_option =
    LSome of 'a
- | LNone of Token.flocation
+ | LNone of GrafiteAst.loc
 
-type statement =
- include_paths:string list ->
- LexiconEngine.status ->
-  LexiconEngine.status *
+type ast_statement =
   (CicNotationPt.term, CicNotationPt.term,
-   CicNotationPt.term GrafiteAst.reduction, CicNotationPt.obj, string)
-    GrafiteAst.statement localized_option
+   CicNotationPt.term GrafiteAst.reduction, 
+   CicNotationPt.term CicNotationPt.obj, string)
+    GrafiteAst.statement
+
+type statement =
+  include_paths:string list ->
+  LexiconEngine.status ->
+    LexiconEngine.status * ast_statement localized_option
+
+(* this callback is called on every lexicon command *)
+val set_callback: (LexiconAst.command -> unit) -> unit 
 
 val parse_statement: Ulexing.lexbuf -> statement  (** @raise End_of_file *)