diff src/corify.sml @ 247:5c50b17f5e4a

Corify tables
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 Aug 2008 09:00:28 -0400
parents 3aa010e97db9
children b6b75e6e0898
line wrap: on
line diff
--- a/src/corify.sml	Sun Aug 31 08:46:22 2008 -0400
+++ b/src/corify.sml	Sun Aug 31 09:00:28 2008 -0400
@@ -806,7 +806,13 @@
              end
            | _ => raise Fail "Non-const signature for 'export'")
 
-      | L.DTable _ => raise Fail "Corify DTable"
+       | L.DTable (_, x, n, c) =>
+         let
+             val (st, n) = St.bindVal st x n
+             val s = x
+         in
+             ([(L'.DTable (x, n, corifyCon st c, s), loc)], st)
+         end
 
 and corifyStr ((str, _), st) =
     case str of