aboutsummaryrefslogtreecommitdiff
path: root/pretyping/reductionops.mli
diff options
context:
space:
mode:
authorpboutill2012-06-15 17:52:08 +0000
committerpboutill2012-06-15 17:52:08 +0000
commitfc63b201de310e8f638204dea4b49d5a77a10ba0 (patch)
tree1f9a1872ea292485bd78703e7b8e1ddbe027e69b /pretyping/reductionops.mli
parentb7f40eefbd2310f07553709245af13b6929b34e3 (diff)
Reductionops : Better abstract machine stack utilities
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15443 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping/reductionops.mli')
-rw-r--r--pretyping/reductionops.mli13
1 files changed, 8 insertions, 5 deletions
diff --git a/pretyping/reductionops.mli b/pretyping/reductionops.mli
index ee3fc232bf..36e591fc99 100644
--- a/pretyping/reductionops.mli
+++ b/pretyping/reductionops.mli
@@ -32,15 +32,18 @@ type 'a stack_member =
and 'a stack = 'a stack_member list
val empty_stack : 'a stack
-val append_stack : 'a array -> 'a stack -> 'a stack
-val append_stack_list : 'a list -> 'a stack -> 'a stack
+val append_stack_app : 'a array -> 'a stack -> 'a stack
+val append_stack_app_list : 'a list -> 'a stack -> 'a stack
val decomp_stack : 'a stack -> ('a * 'a stack) option
-val list_of_stack : 'a stack -> 'a list
-val array_of_stack : 'a stack -> 'a array
+(** Takes the n first arguments of application put on the stack. Fails is the
+ stack does not start by n arguments of application. *)
+val nfirsts_app_of_stack : int -> 'a stack -> 'a list
+val list_of_app_stack : 'a stack -> 'a list
+val array_of_app_stack : 'a stack -> 'a array
val stack_assign : 'a stack -> int -> 'a -> 'a stack
val stack_args_size : 'a stack -> int
-val app_stack : constr * constr stack -> constr
+val zip : constr * constr stack -> constr
val stack_tail : int -> 'a stack -> 'a stack
val stack_nth : 'a stack -> int -> 'a