aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/shake.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-09-14 11:02:18 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-09-14 11:02:18 -0400
commitc81c24b4feb3fae3c13861f1bcaafab697a6bb7e (patch)
tree4f168489261d0202a9d664e548dd71a10665df46 /src/shake.sml
parent0faed8b64498534297bd797108b659802815aefc (diff)
SQL sequences
Diffstat (limited to 'src/shake.sml')
-rw-r--r--src/shake.sml4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shake.sml b/src/shake.sml
index 6395bfdc..38d72cc5 100644
--- a/src/shake.sml
+++ b/src/shake.sml
@@ -41,6 +41,7 @@ type free = {
exp : IS.set
}
+val dummyt = (TRecord (CRecord ((KType, ErrorMsg.dummySpan), []), ErrorMsg.dummySpan), ErrorMsg.dummySpan)
val dummye = (EPrim (Prim.String ""), ErrorMsg.dummySpan)
fun shake file =
@@ -60,6 +61,8 @@ fun shake file =
| ((DExport _, _), acc) => acc
| ((DTable (_, n, c, _), _), (cdef, edef)) =>
(cdef, IM.insert (edef, n, (c, dummye)))
+ | ((DSequence (_, n, _), _), (cdef, edef)) =>
+ (cdef, IM.insert (edef, n, (dummyt, dummye)))
| ((DDatabase _, _), acc) => acc)
(IM.empty, IM.empty) file
@@ -116,6 +119,7 @@ fun shake file =
| (DValRec vis, _) => List.exists (fn (_, n, _, _, _) => IS.member (#exp s, n)) vis
| (DExport _, _) => true
| (DTable _, _) => true
+ | (DSequence _, _) => true
| (DDatabase _, _) => true) file
end