aboutsummaryrefslogtreecommitdiffhomepage
path: root/parsing
diff options
context:
space:
mode:
authorGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2003-04-16 22:23:58 +0000
committerGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2003-04-16 22:23:58 +0000
commit8568214f1b7950fe9c5d95c04e851c00f49751ce (patch)
tree91d2fe6ba491c2e7df9ef28eccffcfe37fd286da /parsing
parent391605f6195f92603ca960014db302dc79e6d24f (diff)
simplification: fst (list_chop n l) = firstn n l et snd (list_chop n l) = list_skipn n l
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3931 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing')
-rw-r--r--parsing/egrammar.ml2
-rw-r--r--parsing/termast.ml2
2 files changed, 2 insertions, 2 deletions
diff --git a/parsing/egrammar.ml b/parsing/egrammar.ml
index 77ac447c9..ef3919c81 100644
--- a/parsing/egrammar.ml
+++ b/parsing/egrammar.ml
@@ -120,7 +120,7 @@ let find_position other assoc lev =
Some (Gramext.Level (constr_level (n,a))), None, None
let remove_levels n =
- level_stack := snd (list_chop n !level_stack)
+ level_stack := list_skipn n !level_stack
(* Interpretation of the right hand side of grammar rules *)
diff --git a/parsing/termast.ml b/parsing/termast.ml
index 236a35ca7..299c061c9 100644
--- a/parsing/termast.ml
+++ b/parsing/termast.ml
@@ -173,7 +173,7 @@ let rec skip_coercion dest_ref (f,args as app) =
| Some n ->
if n >= List.length args then app
else (* We skip a coercion *)
- let _,fargs = list_chop n args in
+ let fargs = list_skipn n args in
skip_coercion dest_ref (List.hd fargs,List.tl fargs)
| None -> app)
| None -> app