summaryrefslogtreecommitdiff
path: root/src/cjr.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-08-03 11:17:33 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-08-03 11:17:33 -0400
commit1798f5eb1b11613d88acb307472922976f1583b4 (patch)
treec999bd3f44c245cf22823bf36a9df908b0fafd87 /src/cjr.sml
parentcf83c3318fb43ebfce468477c9fb6ad64c96e440 (diff)
Cjrize ECon
Diffstat (limited to 'src/cjr.sml')
-rw-r--r--src/cjr.sml16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cjr.sml b/src/cjr.sml
index 59f5cb2f..eb035e40 100644
--- a/src/cjr.sml
+++ b/src/cjr.sml
@@ -38,10 +38,24 @@ datatype typ' =
withtype typ = typ' located
+datatype patCon =
+ PConVar of int
+ | PConFfi of string * string
+
+datatype pat' =
+ PWild
+ | PVar of string
+ | PPrim of Prim.t
+ | PCon of patCon * pat option
+ | PRecord of (string * pat) list
+
+withtype pat = pat' located
+
datatype exp' =
EPrim of Prim.t
| ERel of int
| ENamed of int
+ | ECon of int * exp option
| EFfi of string * string
| EFfiApp of string * string * exp list
| EApp of exp * exp
@@ -49,6 +63,8 @@ datatype exp' =
| ERecord of int * (string * exp) list
| EField of exp * string
+ | ECase of exp * (pat * exp) list * typ
+
| EWrite of exp
| ESeq of exp * exp