]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/common/entity.ml
- we completed the text parser fixing the syntactic shortcuts
[helm.git] / helm / software / lambda-delta / common / entity.ml
index d0e049d23343971bd7bda65232ca39f6dd1cab37..de06f2924717613014f29960bc3af294526636de 100644 (file)
@@ -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,8 +28,6 @@ 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 = {
    delta: bool;        (* global delta-expansion *)
    rt: bool;           (* reference typing *)
@@ -104,6 +104,10 @@ let xlate f xlate_term = function
    | _, _, Void   ->
       assert false
 
-let initial_status expand si = {
-   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
 }