From 49c123050b2bc8a24f250fcc0d55e49484bc604c Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 2 Aug 2008 11:15:32 -0400 Subject: Case through corify --- src/core.sml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/core.sml') diff --git a/src/core.sml b/src/core.sml index b16766b3..5baa0351 100644 --- a/src/core.sml +++ b/src/core.sml @@ -59,10 +59,24 @@ datatype con' = withtype con = con' located +datatype patCon = + PConVar of int + | PConFfi of string * string + +datatype pat' = + PWild + | PVar of string + | PPrim of Prim.t + | PCon of patCon * pat option + | PRecord of (string * pat) list + +withtype pat = pat' located + datatype exp' = EPrim of Prim.t | ERel of int | ENamed of int + | ECon of int * exp option | EFfi of string * string | EFfiApp of string * string * exp list | EApp of exp * exp @@ -75,6 +89,8 @@ datatype exp' = | ECut of exp * con * { field : con, rest : con } | EFold of kind + | ECase of exp * (pat * exp) list * con + | EWrite of exp | EClosure of int * exp list -- cgit v1.2.3