X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FgTopLevel%2FbatchParser.mli;h=6d2900304a228708270a8268e1f947c367c13b74;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=9ba49ef52b9ff80b11b1c9dfce55727b3de67dd1;hpb=57f2f0152b79ad7096b72b7e3e83939d63454a88;p=helm.git diff --git a/helm/gTopLevel/batchParser.mli b/helm/gTopLevel/batchParser.mli index 9ba49ef52..6d2900304 100644 --- a/helm/gTopLevel/batchParser.mli +++ b/helm/gTopLevel/batchParser.mli @@ -26,23 +26,29 @@ exception Failure of string (** uri_pred which rejects ll .var URIs *) -val constants_only: (string -> bool) +val constants_only: prefix:string -> (string -> bool) (** @param variables enabled - * @param variables prefix + * @param variables prefix varsprefix * @return uri predicate suitable for functions below *) -val uri_pred_of_conf: bool -> string -> (string -> bool) +val uri_pred_of_conf: + bool -> prefix:string -> varsprefix:string -> (string -> bool) (** Parse a cic term from the given string using disambiguating parser in * batch mode if possible, otherwise raises Failure above. * uri_pred is the predicate used to select which uris are tried. Per default * only constant URIs are accepted *) val parse: - MQIConn.handle -> ?uri_pred:(string -> bool) -> string -> - (DisambiguatingParser.EnvironmentP3.t * Cic.metasenv * Cic.term) list + Mysql.dbd -> ?uri_pred:(string -> bool) -> string -> + CicUniv.universe_graph -> + (DisambiguatingParser.EnvironmentP3.t * + Cic.metasenv * + Cic.term * + CicUniv.universe_graph) list (** as above, but instead of returning the parsed cic term, pretty prints it * (ignoring returned metasenv) *) -val parse_pp: MQIConn.handle -> ?uri_pred:(string -> bool) -> string -> string list +val parse_pp: Mysql.dbd -> ?uri_pred:(string -> bool) -> + string -> CicUniv.universe_graph -> string list