summaryrefslogtreecommitdiff
path: root/src/core_util.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/core_util.sml
parent8a494ef37c4f4f7e15bbf173f44f81d12a60b91b (diff)
'database' declaration threaded through compiler
Diffstat (limited to 'src/core_util.sml')
-rw-r--r--src/core_util.sml5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core_util.sml b/src/core_util.sml
index 0b1b4a0b..dfd6fa77 100644
--- a/src/core_util.sml
+++ b/src/core_util.sml
@@ -631,6 +631,7 @@ fun mapfoldB {kind = fk, con = fc, exp = fe, decl = fd, bind} =
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 @@ fun mapfoldB (all as {bind, ...}) =
in
bind (ctx, NamedE (x, n, t, NONE, s))
end
+ | DDatabase _ => ctx
in
S.map2 (mff ctx' ds',
fn ds' =>
@@ -767,7 +769,8 @@ val maxName = foldl (fn ((d, _) : decl, count) =>
| 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