summaryrefslogtreecommitdiff
path: root/src/cjrize.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-09-02 13:09:54 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-09-02 13:09:54 -0400
commit4d83cf46590e7c48581612fd9fe6218b896b89b8 (patch)
tree9fcd1257c4b88ede3b3c1675121221c89e46d60e /src/cjrize.sml
parent48a39b87c0f2b01c85e1bb78072387e30ab0f235 (diff)
Table declarations pushed to Cjr
Diffstat (limited to 'src/cjrize.sml')
-rw-r--r--src/cjrize.sml11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cjrize.sml b/src/cjrize.sml
index c4c77021..88fae6f0 100644
--- a/src/cjrize.sml
+++ b/src/cjrize.sml
@@ -423,6 +423,17 @@ fun cifyDecl ((d, loc), sm) =
(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 =