From b4398c433195b75d5e03d0774b1128fae14e9f41 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Tue, 2 Sep 2008 10:51:41 -0400 Subject: 'database' declaration threaded through compiler --- src/core_util.sml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/core_util.sml') 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 -- cgit v1.2.3