X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Fcommon%2Fentity.ml;h=de06f2924717613014f29960bc3af294526636de;hb=f7839175bf6024d8c7d0c481ee3c8da8393e2ff3;hp=0fa060321e24d635b488be2f4b235e55c79cb6a3;hpb=93205dc852fa208b48a05757d05d9910b7d45fa1;p=helm.git diff --git a/helm/software/lambda-delta/common/entity.ml b/helm/software/lambda-delta/common/entity.ml index 0fa060321..de06f2924 100644 --- a/helm/software/lambda-delta/common/entity.ml +++ b/helm/software/lambda-delta/common/entity.ml @@ -9,6 +9,8 @@ \ / This software is distributed as is, NO WARRANTY. V_______________________________________________________________ *) +module O = Options + type uri = NUri.uri type id = Aut.id @@ -26,10 +28,7 @@ type 'term bind = Abst of 'term (* declaration: domain *) type 'term entity = attrs * uri * 'term bind (* attrs, name, binder *) -type uri_generator = string -> string - type status = { - g: Hierarchy.graph; (* sort hierarchy parameter *) delta: bool; (* global delta-expansion *) rt: bool; (* reference typing *) si: bool; (* sort inclusion *) @@ -105,6 +104,10 @@ let xlate f xlate_term = function | _, _, Void -> assert false -let initial_status g expand si = { - g = g; delta = false; rt = false; si = si; expand = expand +let initial_status () = { + delta = false; rt = false; si = !O.si; expand = !O.expand +} + +let refresh_status st = {st with + si = !O.si; expand = !O.expand }