X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FgTopLevel%2FbatchParser.ml;h=8eb800b84795f39be0b05a6f930ab132032db8d0;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=0d959ac6540861dbd31bdb9843079ca89a56673f;hpb=6cfcba76baa8f30c42624e911bd34a702f785766;p=helm.git diff --git a/helm/gTopLevel/batchParser.ml b/helm/gTopLevel/batchParser.ml index 0d959ac65..8eb800b84 100644 --- a/helm/gTopLevel/batchParser.ml +++ b/helm/gTopLevel/batchParser.ml @@ -71,7 +71,7 @@ module DisambiguateCallbacks = module Disambiguate' = DisambiguatingParser.Make (DisambiguateCallbacks) -let parse mqi_handle ?(uri_pred = constants_only ~prefix:"") = +let parse dbd ?(uri_pred = constants_only ~prefix:"") = uri_predicate := uri_pred; let empty_environment = DisambiguatingParser.EnvironmentP3.of_string @@ -79,11 +79,12 @@ let parse mqi_handle ?(uri_pred = constants_only ~prefix:"") = in let empty_context = [] in let empty_metasenv = [] in - fun input -> + fun input ugraph -> (Disambiguate'.disambiguate_term - mqi_handle empty_context empty_metasenv input empty_environment) + ~dbd empty_context empty_metasenv input empty_environment + ~initial_ugraph:ugraph) -let parse_pp mqi_handle ?uri_pred input = - List.map (fun (_,_,t) -> CicPp.ppterm t) - (parse mqi_handle ?uri_pred input) +let parse_pp dbd ?uri_pred input ugraph = + List.map (fun (_,_,t,_) -> CicPp.ppterm t) + (parse dbd ?uri_pred input ugraph )