]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/grafite_parser/grafiteParser.mli
notation on steroids: 'term 40 x' is a valid variable name in notation and
[helm.git] / helm / software / components / grafite_parser / grafiteParser.mli
index 6d941d5db4286fce0156b700927592bdcfaf58a7..47f0af02bf455ea6ba3f919a16b679f4fcbd81be 100644 (file)
@@ -33,7 +33,11 @@ type ast_statement =
    CicNotationPt.term CicNotationPt.obj, string)
     GrafiteAst.statement
 
+exception NoInclusionPerformed of string (* full path *)
+
 type statement =
+  ?never_include:bool -> 
+    (* do not call LexiconEngine to do includes, always raise NoInclusionPerformed *) 
   include_paths:string list ->
   LexiconEngine.status ->
     LexiconEngine.status * ast_statement localized_option
@@ -42,3 +46,5 @@ val parse_statement: Ulexing.lexbuf -> statement  (** @raise End_of_file *)
 
 val statement: statement Grammar.Entry.e
 
+(* this callback is called on every include command *)
+val set_callback: (string -> unit) -> unit