Mercurial > urweb
diff src/elab.sml @ 9:14b533dbe6cc
Added simple expression constructors to Elab
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 26 Jan 2008 17:26:14 -0500 |
parents | a455a9f85cc3 |
children | d89477f07c1e |
line wrap: on
line diff
--- a/src/elab.sml Sat Jan 26 17:10:26 2008 -0500 +++ b/src/elab.sml Sat Jan 26 17:26:14 2008 -0500 @@ -64,8 +64,21 @@ withtype con = con' located +datatype exp' = + ERel of int + | ENamed of int + | EApp of exp * exp + | EAbs of string * con * exp + | ECApp of exp * con + | ECAbs of explicitness * string * kind * exp + + | EError + +withtype exp = exp' located + datatype decl' = DCon of string * int * kind * con + | DVal of string * int * con * exp withtype decl = decl' located