diff src/shake.sml @ 338:e976b187d73a

SQL sequences
author Adam Chlipala <adamc@hcoop.net>
date Sun, 14 Sep 2008 11:02:18 -0400
parents 42dfb0d61cf0
children 787d4931fb07
line wrap: on
line diff
--- a/src/shake.sml	Sat Sep 13 20:15:30 2008 -0400
+++ b/src/shake.sml	Sun Sep 14 11:02:18 2008 -0400
@@ -41,6 +41,7 @@
      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 @@
                                    | ((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 @@
                       | (DValRec vis, _) => List.exists (fn (_, n, _, _, _) => IS.member (#exp s, n)) vis
                       | (DExport _, _) => true
                       | (DTable _, _) => true
+                      | (DSequence _, _) => true
                       | (DDatabase _, _) => true) file
     end