diff options
author | 2008-07-03 17:14:35 -0400 | |
---|---|---|
committer | 2008-07-03 17:14:35 -0400 | |
commit | e2aa333c0811b2cd3003f9aac565e64f8ae37dbb (patch) | |
tree | fbf85b7af481843c62e6690911cc12e0fb028cb9 /src/lacweb.grm | |
parent | 411808e8dced75f376c7a95bb79d989cde704fd9 (diff) |
More fun with HTML
Diffstat (limited to 'src/lacweb.grm')
-rw-r--r-- | src/lacweb.grm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lacweb.grm b/src/lacweb.grm index 2fcc8d89..4c721cc0 100644 --- a/src/lacweb.grm +++ b/src/lacweb.grm @@ -259,7 +259,12 @@ eexp : eapps (eapps) | FN SYMBOL kcolon kind DARROW eexp (ECAbs (kcolon, SYMBOL, kind, eexp), s (FNleft, eexpright)) | FN SYMBOL COLON cexp DARROW eexp (EAbs (SYMBOL, SOME cexp, eexp), s (FNleft, eexpright)) | FN SYMBOL DARROW eexp (EAbs (SYMBOL, NONE, eexp), s (FNleft, eexpright)) - | FN cterm TWIDDLE cterm DARROW eexp(EDisjoint (cterm1, cterm2, eexp), s (cterm1left, eexpright)) + | LBRACK cterm TWIDDLE cterm RBRACK DARROW eexp(EDisjoint (cterm1, cterm2, eexp), s (LBRACKleft, RBRACKright)) + | FN UNIT DARROW eexp (let + val loc = s (FNleft, eexpright) + in + (EAbs ("_", SOME (TRecord (CRecord [], loc), loc), eexp), loc) + end) | LPAREN eexp RPAREN DCOLON cexp (EAnnot (eexp, cexp), s (LPARENleft, cexpright)) | eterm DOT ident (EField (eterm, ident), s (etermleft, identright)) |