diff src/core.sml @ 182:d11754ffe252

Compiled pattern matching to C
author Adam Chlipala <adamc@hcoop.net>
date Sun, 03 Aug 2008 12:43:20 -0400
parents 5d030ee143e2
children 19ee24bffbc0
line wrap: on
line diff
--- a/src/core.sml	Sun Aug 03 11:17:33 2008 -0400
+++ b/src/core.sml	Sun Aug 03 12:43:20 2008 -0400
@@ -65,10 +65,10 @@
 
 datatype pat' =
          PWild
-       | PVar of string
+       | PVar of string * con
        | PPrim of Prim.t
        | PCon of patCon * pat option
-       | PRecord of (string * pat) list
+       | PRecord of (string * pat * con) list
 
 withtype pat = pat' located
 
@@ -89,7 +89,7 @@
        | ECut of exp * con * { field : con, rest : con }
        | EFold of kind
 
-       | ECase of exp * (pat * exp) list * con
+       | ECase of exp * (pat * exp) list * { disc : con, result : con }
 
        | EWrite of exp