aboutsummaryrefslogtreecommitdiff
path: root/parsing
diff options
context:
space:
mode:
authorherbelin2003-09-26 15:34:50 +0000
committerherbelin2003-09-26 15:34:50 +0000
commit0ddfbbd940b47b133cfc9daf3c657a32c02e14ba (patch)
treed4fc10b40f91c314e39426881f5318ea2b3c5965 /parsing
parentee4b850b8a165dc80016204ba2711dcf68a58676 (diff)
Syntaxe plus liberale pour le type des arguments de filtrage du 'match'
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4491 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing')
-rw-r--r--parsing/g_constrnew.ml44
1 files changed, 1 insertions, 3 deletions
diff --git a/parsing/g_constrnew.ml4 b/parsing/g_constrnew.ml4
index c3a7c27b3a..e8f9c38c5e 100644
--- a/parsing/g_constrnew.ml4
+++ b/parsing/g_constrnew.ml4
@@ -287,9 +287,7 @@ GEXTEND Gram
;
pred_pattern:
[ [ oid = ["as"; id=name -> snd id | -> Names.Anonymous];
- ty = OPT ["in"; r=global; nal=LIST0 name ->
- (loc,r,List.map snd nal)] ->
- (oid,ty) ] ]
+ ty = OPT ["in"; t=lconstr -> t] -> (oid,ty) ] ]
;
case_type:
[ [ ty = OPT [ "return"; c = operconstr LEVEL "100" -> c ] -> ty ] ]