diff src/elab.sml @ 188:8e9f97508f0d

Datatype representation optimization
author Adam Chlipala <adamc@hcoop.net>
date Sun, 03 Aug 2008 19:49:21 -0400
parents d11754ffe252
children aa54250f58ac
line wrap: on
line diff
--- a/src/elab.sml	Sun Aug 03 19:01:16 2008 -0400
+++ b/src/elab.sml	Sun Aug 03 19:49:21 2008 -0400
@@ -71,6 +71,10 @@
 
 withtype con = con' located
 
+datatype datatype_kind =
+         Enum
+       | Default
+
 datatype patCon =
          PConVar of int
        | PConProj of int * string list * string
@@ -79,7 +83,7 @@
          PWild
        | PVar of string * con
        | PPrim of Prim.t
-       | PCon of patCon * pat option
+       | PCon of datatype_kind * patCon * pat option
        | PRecord of (string * pat * con) list
 
 withtype pat = pat' located