Mercurial > urweb
diff src/core_util.sml @ 271:42dfb0d61cf0
'database' declaration threaded through compiler
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 02 Sep 2008 10:51:41 -0400 |
parents | 98f551ddd54b |
children | e976b187d73a |
line wrap: on
line diff
--- a/src/core_util.sml Tue Sep 02 10:31:16 2008 -0400 +++ b/src/core_util.sml Tue Sep 02 10:51:41 2008 -0400 @@ -631,6 +631,7 @@ S.map2 (mfc ctx c, fn c' => (DTable (x, n, c', s), loc)) + | DDatabase _ => S.return2 dAll and mfvi ctx (x, n, t, e, s) = S.bind2 (mfc ctx t, @@ -719,6 +720,7 @@ in bind (ctx, NamedE (x, n, t, NONE, s)) end + | DDatabase _ => ctx in S.map2 (mff ctx' ds', fn ds' => @@ -767,7 +769,8 @@ | DVal (_, n, _, _, _) => Int.max (n, count) | DValRec vis => foldl (fn ((_, n, _, _, _), count) => Int.max (n, count)) count vis | DExport _ => count - | DTable (_, n, _, _) => Int.max (n, count)) 0 + | DTable (_, n, _, _) => Int.max (n, count) + | DDatabase _ => count) 0 end