]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/common/entity.ml
basic_rg: reduction was not tail recursive by mistake
[helm.git] / helm / software / lambda-delta / common / entity.ml
index 7b8dab9508c23c6351445d4f0d5b56c88693d992..5bef9ff3347524351d62eac91e5cd4c340a5afa1 100644 (file)
@@ -21,10 +21,17 @@ type attrs = attr list (* attributes *)
 
 type 'term bind = Abst of 'term (* declaration: domain *)
                 | Abbr of 'term (* definition: body *)
+               | Void          (* exclusion *)
 
 type 'term entity = attrs * uri * 'term bind (* attrs, name, binder *)
 
-type uri_generator = string -> string (* this could be in CPS *) 
+type uri_generator = string -> string
+
+type status = {
+   delta: bool; (* global delta-expansion *)
+   rt: bool;    (* reference typing *)
+   si: bool     (* sort inclusion *)
+}
 
 (* helpers ******************************************************************)
 
@@ -84,3 +91,9 @@ let xlate f xlate_term = function
       let f t = f (a, uri, Abst t) in xlate_term f t
    | a, uri, Abbr t ->
       let f t = f (a, uri, Abbr t) in xlate_term f t
+   | _, _, Void   ->
+      assert false
+
+let initial_status si = {
+   delta = false; rt = false; si = si
+}