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/cjr.sml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cjr.sml') diff --git a/src/cjr.sml b/src/cjr.sml index eb035e40..4c9cf4c3 100644 --- a/src/cjr.sml +++ b/src/cjr.sml @@ -44,10 +44,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 int * (string * exp) list | EField of exp * string - | ECase of exp * (pat * exp) list * typ + | ECase of exp * (pat * exp) list * { disc : typ, result : typ } | EWrite of exp | ESeq of exp * exp -- cgit v1.2.3