diff src/urweb.grm @ 329:eec65c11d3e2

foldTR2
author Adam Chlipala <adamc@hcoop.net>
date Sat, 13 Sep 2008 10:30:45 -0400
parents e457d8972ff1
children e976b187d73a
line wrap: on
line diff
--- a/src/urweb.grm	Thu Sep 11 19:59:31 2008 -0400
+++ b/src/urweb.grm	Sat Sep 13 10:30:45 2008 -0400
@@ -543,6 +543,13 @@
                                                 ((CAbs (SYMBOL, SOME kind, c), loc),
                                                  (KArrow (kind, k), loc))
                                             end)
+       | UNDER DCOLON kind              (fn (c, k) =>
+                                            let
+                                                val loc = s (UNDERleft, kindright)
+                                            in
+                                                ((CAbs ("_", SOME kind, c), loc),
+                                                 (KArrow (kind, k), loc))
+                                            end)
        | cargp                          (cargp)
 
 cargp  : SYMBOL                         (fn (c, k) =>
@@ -552,6 +559,13 @@
                                                 ((CAbs (SYMBOL, NONE, c), loc),
                                                  (KArrow ((KWild, loc), k), loc))
                                             end)
+       | UNDER                          (fn (c, k) =>
+                                            let
+                                                val loc = s (UNDERleft, UNDERright)
+                                            in
+                                                ((CAbs ("_", NONE, c), loc),
+                                                 (KArrow ((KWild, loc), k), loc))
+                                            end)
        | LPAREN SYMBOL DCOLON kind RPAREN (fn (c, k) =>
                                               let
                                                   val loc = s (LPARENleft, RPARENright)