X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Ftoplevel%2FmetaBag.ml;h=67c938df0db267acc84f972b4c331ff93a62ee58;hb=b183713e0e33245a4e58b433a930a94224d1f629;hp=cf2c009f49708332338f46a00aa1cfabe0e580b3;hpb=338e3e5c639fbcfeeb347a0121cacc6c0f1fc42a;p=helm.git diff --git a/helm/software/lambda-delta/toplevel/metaBag.ml b/helm/software/lambda-delta/toplevel/metaBag.ml index cf2c009f4..67c938df0 100644 --- a/helm/software/lambda-delta/toplevel/metaBag.ml +++ b/helm/software/lambda-delta/toplevel/metaBag.ml @@ -35,17 +35,17 @@ let rec xlate_term c f = function let l = B.new_location () in let f t = f (B.Bind (l, id, B.Abst w, t)) in let f c = xlate_term c f t in - B.push f c l id (B.Abst w) + B.push "meta" f c l id (B.Abst w) in xlate_term c f w let xlate_pars f pars = let map f (id, w) c = let l = B.new_location () in - let f w = B.push f c l id (B.Abst w) in + let f w = B.push "meta" f c l id (B.Abst w) in xlate_term c f w in - C.list_fold_right f map pars B.empty_context + C.list_fold_right f map pars B.empty_lenv let unwind_to_xlate_term f c t = let map f t (l, id, b) = f (B.bind l id b t) in @@ -63,10 +63,10 @@ let xlate_entry f = function let f c = unwind_to_xlate_term (f c) c u in xlate_pars f pars -let xlate_item f = function +let xlate_entity f = function | None -> f None | Some e -> let f e = f (Some e) in xlate_entry f e (* Interface functions ******************************************************) -let bag_of_meta = xlate_item +let bag_of_meta = xlate_entity