]> matita.cs.unibo.it Git - helm.git/commitdiff
added ( ) notation for binders
authorStefano Zacchiroli <zack@upsilon.cc>
Thu, 5 Feb 2004 13:29:41 +0000 (13:29 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Thu, 5 Feb 2004 13:29:41 +0000 (13:29 +0000)
helm/ocaml/cic_disambiguation/cicTextualParser2.ml

index 397d038678839f00941803ffa830c7c6af27d645..2bcbb88e8da8a984c5b29c77a4620cd5be539652 100644 (file)
@@ -109,8 +109,13 @@ EXTEND
       ]
     | "binder" RIGHTA
       [
-        b = binder; vars = LIST1 IDENT SEP SYMBOL ",";
-        typ = OPT [ SYMBOL ":"; t = term -> t ];
+        b = binder;
+        (vars, typ) =
+          [ vars = LIST1 IDENT SEP SYMBOL ",";
+            typ = OPT [ SYMBOL ":"; t = term -> t ] -> (vars, typ)
+          | PAREN "("; vars = LIST1 IDENT SEP SYMBOL ",";
+            typ = OPT [ SYMBOL ":"; t = term -> t ]; PAREN ")" -> (vars, typ)
+          ];
         SYMBOL "."; body = term ->
           let binder =
             List.fold_right