diff src/cjrize.sml @ 273:09c66a30ef32

Table declarations pushed to Cjr
author Adam Chlipala <adamc@hcoop.net>
date Tue, 02 Sep 2008 13:09:54 -0400
parents 42dfb0d61cf0
children fdd7a698be01
line wrap: on
line diff
--- a/src/cjrize.sml	Tue Sep 02 11:57:25 2008 -0400
+++ b/src/cjrize.sml	Tue Sep 02 13:09:54 2008 -0400
@@ -423,6 +423,17 @@
             (NONE, SOME (ek, "/" ^ s, n, ts), sm)
         end
 
+      | L.DTable (s, xts) =>
+        let
+            val (xts, sm) = ListUtil.foldlMap (fn ((x, t), sm) =>
+                                                  let
+                                                      val (t, sm) = cifyTyp (t, sm)
+                                                  in
+                                                      ((x, t), sm)
+                                                  end) sm xts
+        in
+            (SOME (L'.DTable (s, xts), loc), NONE, sm)
+        end
       | L.DDatabase s => (SOME (L'.DDatabase s, loc), NONE, sm)
 
 fun cjrize ds =