X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Fbasic_ag%2Fbag.ml;h=1aa9b62e749a79b5f2494ce0d09b67932235584f;hb=cf01ca6479346febcdf120e483ca9ce89d53e301;hp=79e7a042199597ff48f8d92a0806cff389f315a1;hpb=f3cddcf163b36101158ea33b3fad368ac8c62d75;p=helm.git diff --git a/helm/software/lambda-delta/basic_ag/bag.ml b/helm/software/lambda-delta/basic_ag/bag.ml index 79e7a0421..1aa9b62e7 100644 --- a/helm/software/lambda-delta/basic_ag/bag.ml +++ b/helm/software/lambda-delta/basic_ag/bag.ml @@ -26,14 +26,18 @@ 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 si root s = + let kernel = if si then "bag-si" else "bag" in + String.concat "/" ["ld:"; kernel; root; s ^ ".ld"] + (* Currified constructors ***************************************************) let abst w = Abst w