summaryrefslogtreecommitdiff
path: root/src/shake.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-09-02 10:51:41 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-09-02 10:51:41 -0400
commitb4398c433195b75d5e03d0774b1128fae14e9f41 (patch)
tree70e65dddc4c89b8cd1e13fce0d0c2ce21f50d67a /src/shake.sml
parent8a494ef37c4f4f7e15bbf173f44f81d12a60b91b (diff)
'database' declaration threaded through compiler
Diffstat (limited to 'src/shake.sml')
-rw-r--r--src/shake.sml6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shake.sml b/src/shake.sml
index 6d8280fe..6395bfdc 100644
--- a/src/shake.sml
+++ b/src/shake.sml
@@ -59,7 +59,8 @@ fun shake file =
(cdef, foldl (fn ((_, n, t, e, _), edef) => IM.insert (edef, n, (t, e))) edef vis)
| ((DExport _, _), acc) => acc
| ((DTable (_, n, c, _), _), (cdef, edef)) =>
- (cdef, IM.insert (edef, n, (c, dummye))))
+ (cdef, IM.insert (edef, n, (c, dummye)))
+ | ((DDatabase _, _), acc) => acc)
(IM.empty, IM.empty) file
fun kind (_, s) = s
@@ -114,7 +115,8 @@ fun shake file =
| (DVal (_, n, _, _, _), _) => IS.member (#exp s, n)
| (DValRec vis, _) => List.exists (fn (_, n, _, _, _) => IS.member (#exp s, n)) vis
| (DExport _, _) => true
- | (DTable _, _) => true) file
+ | (DTable _, _) => true
+ | (DDatabase _, _) => true) file
end
end