]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/toplevel/metaBag.ml
- common/entity: new format for kernel entities
[helm.git] / helm / software / lambda-delta / toplevel / metaBag.ml
index 67c938df0db267acc84f972b4c331ff93a62ee58..991d7e8c2048998628ed3d9d040c7eb15a5f21f0 100644 (file)
@@ -52,21 +52,16 @@ let unwind_to_xlate_term f c t =
    let f t = C.list_fold_left f map t c in
    xlate_term c f t
 
-let xlate_entry f = function
-   | e, pars, uri, u, None        ->
-      let f u = f (e, uri, B.Abst u) in
+let xlate_entry f = function 
+   | pars, u, None   ->
       let f c = unwind_to_xlate_term f c u in      
       xlate_pars f pars   
-   | e, pars, uri, u, Some (_, t) ->
-      let f u t = f (e, uri, B.Abbr (B.Cast (u, t))) in
+   | pars, u, Some t ->
+      let f u t = f (B.Cast (u, t)) in
       let f c u = unwind_to_xlate_term (f u) c t in
       let f c = unwind_to_xlate_term (f c) c u in
       xlate_pars f pars
-
-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_entity
+let bag_of_meta = xlate_entry