]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/grafite_parser/grafiteParser.mli
- Grammar for all obj commands ported to NG (let recs and inductives still need
[helm.git] / helm / software / components / grafite_parser / grafiteParser.mli
index f8754df0c4715f14c098e9072310e7d53be25a86..b0dc6e8fd28e8b4a25bd51d0596b52809bac6adf 100644 (file)
@@ -33,14 +33,21 @@ 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
 
 val parse_statement: Ulexing.lexbuf -> statement  (** @raise End_of_file *)
 
-val statement: statement Grammar.Entry.e
+val statement: unit -> statement Grammar.Entry.e
 
 (* this callback is called on every include command *)
 val set_callback: (string -> unit) -> unit 
+
+val push : unit -> unit
+val pop : unit -> unit