aboutsummaryrefslogtreecommitdiffhomepage
path: root/interp/notation.ml
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2015-06-24 15:41:11 +0200
committerGravatar Jason Gross <jgross@mit.edu>2015-08-14 02:49:31 -0400
commit6aa58955515dff338ea85d59073dfc0d0c7648ab (patch)
treeed472dbf020c22a3080bc5e13a398914875bca11 /interp/notation.ml
parent297b0cb44bbe8ec7304ca635c566815167266d4a (diff)
Move type_scope into user space, fix some output logs
Diffstat (limited to 'interp/notation.ml')
-rw-r--r--interp/notation.ml9
1 files changed, 5 insertions, 4 deletions
diff --git a/interp/notation.ml b/interp/notation.ml
index 075e04cba..8395f7d9a 100644
--- a/interp/notation.ml
+++ b/interp/notation.ml
@@ -65,11 +65,9 @@ let empty_scope = {
}
let default_scope = "" (* empty name, not available from outside *)
-let type_scope = "type_scope" (* special scope used for interpreting types *)
let init_scope_map () =
- scope_map := String.Map.add default_scope empty_scope !scope_map;
- scope_map := String.Map.add type_scope empty_scope !scope_map
+ scope_map := String.Map.add default_scope empty_scope !scope_map
(**********************************************************************)
(* Operations on scopes *)
@@ -576,7 +574,7 @@ end
module ScopeClassMap = Map.Make(ScopeClassOrd)
let initial_scope_class_map : scope_name ScopeClassMap.t =
- ScopeClassMap.add CL_SORT type_scope ScopeClassMap.empty
+ ScopeClassMap.empty
let scope_class_map = ref initial_scope_class_map
@@ -610,6 +608,9 @@ let compute_arguments_scope t = fst (compute_arguments_scope_full t)
let compute_type_scope t =
find_scope_class_opt (try Some (compute_scope_class t) with Not_found -> None)
+let current_type_scope_name () =
+ find_scope_class_opt (Some CL_SORT)
+
let scope_class_of_class (x : cl_typ) : scope_class =
x