X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fgrafite_parser%2FgrafiteParser.mli;h=b0dc6e8fd28e8b4a25bd51d0596b52809bac6adf;hb=b438322c4140e3d2395d693e9c5f0e96934436a0;hp=6d941d5db4286fce0156b700927592bdcfaf58a7;hpb=64d7a7dfa840d7279f9af64240ee1f8a69181801;p=helm.git diff --git a/helm/software/components/grafite_parser/grafiteParser.mli b/helm/software/components/grafite_parser/grafiteParser.mli index 6d941d5db..b0dc6e8fd 100644 --- a/helm/software/components/grafite_parser/grafiteParser.mli +++ b/helm/software/components/grafite_parser/grafiteParser.mli @@ -33,12 +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