diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-10-21 10:56:43 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-10-21 10:56:43 -0400 |
commit | ce5158acc101774d5a264ae7154e9e0799e3848c (patch) | |
tree | 0f3b413495a6f55cc12a8d4abf6e0f6fb3b9cdfc /src/urweb.grm | |
parent | 007027d1bb5b084352a1fc9e4e4178ee8e9821fe (diff) |
lt, le working for int
Diffstat (limited to 'src/urweb.grm')
-rw-r--r-- | src/urweb.grm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/urweb.grm b/src/urweb.grm index 183f9afd..f47e26bb 100644 --- a/src/urweb.grm +++ b/src/urweb.grm @@ -697,6 +697,12 @@ eexp : eapps (eapps) | eterm STAR eexp (native_op ("times", eterm, eexp, s (etermleft, eexpright))) | eexp DIVIDE eexp (native_op ("div", eexp1, eexp2, s (eexp1left, eexp2right))) | eexp MOD eexp (native_op ("mod", eexp1, eexp2, s (eexp1left, eexp2right))) + + | eexp LT eexp (native_op ("lt", eexp1, eexp2, s (eexp1left, eexp2right))) + | eexp LE eexp (native_op ("le", eexp1, eexp2, s (eexp1left, eexp2right))) + | eexp GT eexp (native_op ("gt", eexp1, eexp2, s (eexp1left, eexp2right))) + | eexp GE eexp (native_op ("ge", eexp1, eexp2, s (eexp1left, eexp2right))) + | eexp WITH cterm EQ eexp (EWith (eexp1, cterm, eexp2), s (eexp1left, eexp2right)) eargs : earg (earg) @@ -983,6 +989,13 @@ xmlOne : NOTAGS (EApp ((EVar (["Basis"], "cdata"), s (NO (EFold, pos)) end) | LBRACE eexp RBRACE (eexp) + | LBRACE LBRACK eexp RBRACK RBRACE (let + val loc = s (LBRACEleft, RBRACEright) + val e = (EVar (["Top"], "txt"), loc) + val e = (EApp (e, (EWild, loc)), loc) + in + (EApp (e, eexp), loc) + end) tag : tagHead attrs (let val pos = s (tagHeadleft, attrsright) |