diff options
| author | herbelin | 2007-02-02 16:19:30 +0000 |
|---|---|---|
| committer | herbelin | 2007-02-02 16:19:30 +0000 |
| commit | 143e230bc7073b4623aa7e2e51bd8cde3ea6bbbf (patch) | |
| tree | a525b73238cf7a9d0057f0d76e279c68560b5452 | |
| parent | 2927e09625f2cf56867fdb6c97cb71ddc3a73555 (diff) | |
Factorisation de la règle Constr.binder dans g_subtac.ml pour éviter
de cacher l'instance de la règle figurant dans g_constr (report
révision 9588 de 8.1 vers trunk)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9589 85f007b7-540e-0410-9357-904b9bb8a0f7
| -rw-r--r-- | contrib/subtac/g_subtac.ml4 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/contrib/subtac/g_subtac.ml4 b/contrib/subtac/g_subtac.ml4 index 337cc09fc1..933ea94b31 100644 --- a/contrib/subtac/g_subtac.ml4 +++ b/contrib/subtac/g_subtac.ml4 @@ -67,10 +67,12 @@ GEXTEND Gram Constr.binder: [ [ "("; id=Prim.name; ":"; c=Constr.lconstr; "|"; p=Constr.lconstr; ")" -> - let typ = mkAppC (sigref, [mkLambdaC ([id], c, p)]) in - ([id], typ) ] ]; - - + ([id],mkAppC (sigref, [mkLambdaC ([id], c, p)])) + | "("; id=Prim.name; ":"; c=Constr.lconstr; ")" -> + ([id],c) + | "("; id=Prim.name; lid=LIST1 Prim.name; ":"; c=Constr.lconstr; ")" -> + (id::lid,c) + ] ]; END |
