aboutsummaryrefslogtreecommitdiffhomepage
path: root/parsing/extend.ml
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2002-11-28 00:35:08 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2002-11-28 00:35:08 +0000
commitc379f867ca1f575744c843aaf816dab9cfe56a1a (patch)
treeebdbb31f8b1415d4737f0b6809c19853bc7156ea /parsing/extend.ml
parent8d0bea8f585cf54ae726fcac0707f44058796bc7 (diff)
Affinement de la gestion des niveaux
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3314 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing/extend.ml')
-rw-r--r--parsing/extend.ml12
1 files changed, 6 insertions, 6 deletions
diff --git a/parsing/extend.ml b/parsing/extend.ml
index a53f0a31a..04a31fa49 100644
--- a/parsing/extend.ml
+++ b/parsing/extend.ml
@@ -186,13 +186,13 @@ let clever_explicitize_prod_entry pos univ from en =
| ETConstr (from,()) ->
(match t with
| ETConstr (n,BorderProd (left,None)) when (n=from & left) ->
- ETConstr (n,BorderProd (true,Some Gramext.LeftA))
+ ETConstr (n,BorderProd (left,Some Gramext.LeftA))
| ETConstr (n,BorderProd (left,None)) when (n=from-1 & not left) ->
- ETConstr (n+1,BorderProd (true,Some Gramext.LeftA))
+ ETConstr (n+1,BorderProd (left,Some Gramext.LeftA))
| ETConstr (n,BorderProd (left,None)) when (n=from-1 & left) ->
- ETConstr (n+1,BorderProd (true,Some Gramext.RightA))
+ ETConstr (n+1,BorderProd (left,Some Gramext.RightA))
| ETConstr (n,BorderProd (left,None)) when (n=from & not left) ->
- ETConstr (n,BorderProd (true,Some Gramext.RightA))
+ ETConstr (n,BorderProd (left,Some Gramext.RightA))
| t -> t)
| _ -> t
@@ -224,13 +224,13 @@ let rec prod_item_list univ penv pil current_pos =
match pil with
| [] -> [], penv
| pi :: pitl ->
- let pos = if pitl=[] then (BorderProd (true,None)) else current_pos in
+ let pos = if pitl=[] then (BorderProd (false,None)) else current_pos in
let (env, pic) = prod_item (univ,pos) penv pi in
let (pictl, act_env) = prod_item_list univ env pitl InternalProd in
(pic :: pictl, act_env)
let gram_rule univ (name,pil,act) =
- let (pilc, act_env) = prod_item_list univ [] pil (BorderProd (false,None)) in
+ let (pilc, act_env) = prod_item_list univ [] pil (BorderProd (true,None)) in
let a = to_act_check_vars act_env act in
{ gr_name = name; gr_production = pilc; gr_action = a }