summaryrefslogtreecommitdiff
path: root/src/flat.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-06-10 18:28:43 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-06-10 18:28:43 -0400
commitc1c6013533ba8eaa3b41924bcd61d99a4da27955 (patch)
tree21e70479e0bc1cf28935d2d80700c1c3063ddc36 /src/flat.sml
parentecf88cd1a7c5d137a732c4c8eb4d34c5e845ccaf (diff)
Translation to Cjr
Diffstat (limited to 'src/flat.sml')
-rw-r--r--src/flat.sml7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/flat.sml b/src/flat.sml
index 543cd42f..55c7397a 100644
--- a/src/flat.sml
+++ b/src/flat.sml
@@ -30,7 +30,8 @@ structure Flat = struct
type 'a located = 'a ErrorMsg.located
datatype typ' =
- TFun of typ * typ
+ TTop
+ | TFun of typ * typ
| TCode of typ * typ
| TRecord of (string * typ) list
| TNamed of int
@@ -44,10 +45,10 @@ datatype exp' =
| ECode of int
| EApp of exp * exp
- | ERecord of (string * exp) list
+ | ERecord of (string * exp * typ) list
| EField of exp * string
- | ELet of (string * exp) list * exp
+ | ELet of (string * typ * exp) list * exp
withtype exp = exp' located