diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-08-03 12:43:20 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-08-03 12:43:20 -0400 |
commit | 6314b4c27a14576b356258dad74607168135cb51 (patch) | |
tree | ec853f9102b3d3e5729457db7a10fd4f81165431 /src/elab.sml | |
parent | 1798f5eb1b11613d88acb307472922976f1583b4 (diff) |
Compiled pattern matching to C
Diffstat (limited to 'src/elab.sml')
-rw-r--r-- | src/elab.sml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/elab.sml b/src/elab.sml index 58e69629..fb67556b 100644 --- a/src/elab.sml +++ b/src/elab.sml @@ -77,10 +77,10 @@ datatype patCon = 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 @@ -99,7 +99,7 @@ datatype exp' = | 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 } | EError |