aboutsummaryrefslogtreecommitdiff
path: root/interp
diff options
context:
space:
mode:
authorglondu2011-10-28 08:35:06 +0000
committerglondu2011-10-28 08:35:06 +0000
commit97da8221e0097ed365f0a99e4960148424a59734 (patch)
tree7a0d1b1bc8995dd456b38863674a65230ace957f /interp
parent7a10a8a17928df1da29b4f69a2b54ac83a3e1fc3 (diff)
Remove dynamic stuff from constr_expr and glob_constr
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14621 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'interp')
-rw-r--r--interp/constrextern.ml2
-rw-r--r--interp/constrintern.ml2
-rw-r--r--interp/implicit_quantifiers.ml2
-rw-r--r--interp/topconstr.ml14
-rw-r--r--interp/topconstr.mli1
5 files changed, 7 insertions, 14 deletions
diff --git a/interp/constrextern.ml b/interp/constrextern.ml
index eb817ce1bd..8469d6db58 100644
--- a/interp/constrextern.ml
+++ b/interp/constrextern.ml
@@ -741,8 +741,6 @@ let rec extern inctx scopes vars r =
| GCast (loc,c, CastCoerce) ->
CCast (loc,sub_extern true scopes vars c, CastCoerce)
- | GDynamic (loc,d) -> CDynamic (loc,d)
-
and extern_typ (_,scopes) =
extern true (Some Notation.type_scope,scopes)
diff --git a/interp/constrintern.ml b/interp/constrintern.ml
index 7cca7347b7..7db10d81c6 100644
--- a/interp/constrintern.ml
+++ b/interp/constrintern.ml
@@ -1351,8 +1351,6 @@ let internalize sigma globalenv env allow_patvar lvar c =
| CCast (loc, c1, CastCoerce) ->
GCast (loc,intern env c1, CastCoerce)
- | CDynamic (loc,d) -> GDynamic (loc,d)
-
and intern_type env = intern (set_type_scope env)
and intern_local_binder env bind =
diff --git a/interp/implicit_quantifiers.ml b/interp/implicit_quantifiers.ml
index bc067a2f5a..a104cd5db4 100644
--- a/interp/implicit_quantifiers.ml
+++ b/interp/implicit_quantifiers.ml
@@ -182,7 +182,7 @@ let generalizable_vars_of_glob_constr ?(bound=Idset.empty) ?(allowed=Idset.empty
array_fold_left_i vars_fix vs idl
| GCast (loc,c,k) -> let v = vars bound vs c in
(match k with CastConv (_,t) -> vars bound v t | _ -> v)
- | (GSort _ | GHole _ | GRef _ | GEvar _ | GPatVar _ | GDynamic _) -> vs
+ | (GSort _ | GHole _ | GRef _ | GEvar _ | GPatVar _) -> vs
and vars_pattern bound vs (loc,idl,p,c) =
let bound' = List.fold_right Idset.add idl bound in
diff --git a/interp/topconstr.ml b/interp/topconstr.ml
index 73fb3452b4..839a90da05 100644
--- a/interp/topconstr.ml
+++ b/interp/topconstr.ml
@@ -200,9 +200,9 @@ let compare_glob_constr f add t1 t2 = match t1,t2 with
| GSort (_,s1), GSort (_,s2) -> s1 = s2
| GLetIn (_,na1,b1,c1), GLetIn (_,na2,b2,c2) when na1 = na2 ->
on_true_do (f b1 b2 & f c1 c2) add na1
- | (GCases _ | GRec _ | GDynamic _
+ | (GCases _ | GRec _
| GPatVar _ | GEvar _ | GLetTuple _ | GIf _ | GCast _),_
- | _,(GCases _ | GRec _ | GDynamic _
+ | _,(GCases _ | GRec _
| GPatVar _ | GEvar _ | GLetTuple _ | GIf _ | GCast _)
-> error "Unsupported construction in recursive notations."
| (GRef _ | GVar _ | GApp _ | GLambda _ | GProd _
@@ -321,7 +321,7 @@ let aconstr_and_vars_of_glob_constr a =
| GHole (_,w) -> AHole w
| GRef (_,r) -> ARef r
| GPatVar (_,(_,n)) -> APatVar n
- | GDynamic _ | GEvar _ ->
+ | GEvar _ ->
error "Existential variables not allowed in notations."
in
@@ -728,7 +728,7 @@ let rec match_ inner u alp (tmetas,blmetas as metas) sigma a1 a2 =
[(Name id',Explicit,None,GHole(dummy_loc,Evd.BinderType (Name id')))])
(mkGApp dummy_loc b1 (GVar (dummy_loc,id'))) b2
- | (GDynamic _ | GRec _ | GEvar _), _
+ | (GRec _ | GEvar _), _
| _,_ -> raise No_match
and match_in u = match_ true u
@@ -870,7 +870,6 @@ type constr_expr =
| CGeneralization of loc * binding_kind * abstraction_kind option * constr_expr
| CPrim of loc * prim_token
| CDelimiters of loc * string * constr_expr
- | CDynamic of loc * Dyn.t
and fix_expr =
identifier located * (identifier located option * recursion_order_expr) * local_binder list * constr_expr * constr_expr
@@ -936,7 +935,6 @@ let constr_loc = function
| CGeneralization (loc,_,_,_) -> loc
| CPrim (loc,_) -> loc
| CDelimiters (loc,_,_) -> loc
- | CDynamic _ -> dummy_loc
let cases_pattern_expr_loc = function
| CPatAlias (loc,_,_) -> loc
@@ -1032,7 +1030,7 @@ let fold_constr_expr_with_binders g f n acc = function
List.fold_left (fun acc bl -> fold_local_binders g f n acc (CHole (dummy_loc,None)) bl) acc bll
| CGeneralization (_,_,_,c) -> f n acc c
| CDelimiters (loc,_,a) -> f n acc a
- | CHole _ | CEvar _ | CPatVar _ | CSort _ | CPrim _ | CDynamic _ | CRef _ ->
+ | CHole _ | CEvar _ | CPatVar _ | CSort _ | CPrim _ | CRef _ ->
acc
| CRecord (loc,_,l) -> List.fold_left (fun acc (id, c) -> f n acc c) acc l
| CCases (loc,sty,rtnpo,al,bl) ->
@@ -1190,7 +1188,7 @@ let map_constr_expr_with_binders g f e = function
| CGeneralization (loc,b,a,c) -> CGeneralization (loc,b,a,f e c)
| CDelimiters (loc,s,a) -> CDelimiters (loc,s,f e a)
| CHole _ | CEvar _ | CPatVar _ | CSort _
- | CPrim _ | CDynamic _ | CRef _ as x -> x
+ | CPrim _ | CRef _ as x -> x
| CRecord (loc,p,l) -> CRecord (loc,p,List.map (fun (id, c) -> (id, f e c)) l)
| CCases (loc,sty,rtnpo,a,bl) ->
(* TODO: apply g on the binding variables in pat... *)
diff --git a/interp/topconstr.mli b/interp/topconstr.mli
index ecffed6a45..4527dc48a4 100644
--- a/interp/topconstr.mli
+++ b/interp/topconstr.mli
@@ -165,7 +165,6 @@ type constr_expr =
| CGeneralization of loc * binding_kind * abstraction_kind option * constr_expr
| CPrim of loc * prim_token
| CDelimiters of loc * string * constr_expr
- | CDynamic of loc * Dyn.t
and fix_expr =
identifier located * (identifier located option * recursion_order_expr) * local_binder list * constr_expr * constr_expr