]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/basic_ag/bag.ml
we enabled the new style xml exportation, in particular for dual_rg
[helm.git] / helm / software / lambda-delta / basic_ag / bag.ml
index 79e7a042199597ff48f8d92a0806cff389f315a1..8a07f55a819fd4696ccfabd61f683c2c68f67c47 100644 (file)
@@ -26,14 +26,17 @@ and term = Sort of int                    (* hierarchy index *)
          | Appl of term * term            (* argument, function *)
          | Bind of int * id * bind * term (* location, name, binder, scope *)
 
-type entry = bind Entity.entry (* age, uri, binder *)
-
-type entity = bind Entity.entity
+type entity = term Entity.entity (* attrs, uri, binder *)
 
 type lenv = (int * id * bind) list (* location, name, binder *) 
 
 type message = (lenv, term) Log.item list
 
+(* helpers ******************************************************************)
+
+let mk_uri root s =
+   String.concat "/" ["ld:"; "bag"; root; s ^ ".ld"]
+
 (* Currified constructors ***************************************************)
 
 let abst w = Abst w