From 6314b4c27a14576b356258dad74607168135cb51 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 3 Aug 2008 12:43:20 -0400 Subject: Compiled pattern matching to C --- src/core.sml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core.sml') diff --git a/src/core.sml b/src/core.sml index 5baa0351..257f7ed1 100644 --- a/src/core.sml +++ b/src/core.sml @@ -65,10 +65,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 @@ -89,7 +89,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 } | EWrite of exp -- cgit v1.2.3