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/mono.sml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mono.sml') diff --git a/src/mono.sml b/src/mono.sml index 7ed1aca1..f8c7dbfe 100644 --- a/src/mono.sml +++ b/src/mono.sml @@ -43,10 +43,10 @@ datatype patCon = datatype pat' = PWild - | PVar of string + | PVar of string * typ | PPrim of Prim.t | PCon of patCon * pat option - | PRecord of (string * pat) list + | PRecord of (string * pat * typ) list withtype pat = pat' located @@ -63,7 +63,7 @@ datatype exp' = | ERecord of (string * exp * typ) list | EField of exp * string - | ECase of exp * (pat * exp) list * typ + | ECase of exp * (pat * exp) list * { disc : typ, result : typ } | EStrcat of exp * exp -- cgit v1.2.3