Mercurial > urweb
diff src/shake.sml @ 271:42dfb0d61cf0
'database' declaration threaded through compiler
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 02 Sep 2008 10:51:41 -0400 |
parents | d5b12daa9b47 |
children | e976b187d73a |
line wrap: on
line diff
--- a/src/shake.sml Tue Sep 02 10:31:16 2008 -0400 +++ b/src/shake.sml Tue Sep 02 10:51:41 2008 -0400 @@ -59,7 +59,8 @@ (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 @@ | (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