diff src/elab_env.sml @ 205:cb8f69556975

Elaborating 'SELECT *' queries
author Adam Chlipala <adamc@hcoop.net>
date Thu, 14 Aug 2008 15:24:59 -0400
parents dd82457fda82
children e86411f647c6
line wrap: on
line diff
--- a/src/elab_env.sml	Thu Aug 14 13:59:11 2008 -0400
+++ b/src/elab_env.sml	Thu Aug 14 15:24:59 2008 -0400
@@ -404,15 +404,12 @@
       | SgiSgn (x, n, sgn) => pushSgnNamedAs env x n sgn
       | SgiConstraint _ => env
 
-      | SgiTable (x, n, c) =>
-        (case lookupStr env "Basis" of
-             NONE => raise Fail "ElabEnv.sgiBinds: Can't find Basis"
-           | SOME (n, _) =>
-             let
-                 val t = (CApp ((CModProj (n, [], "table"), loc), c), loc)
-             in
-                 pushENamedAs env x n t
-             end)
+      | SgiTable (tn, x, n, c) =>
+        let
+            val t = (CApp ((CModProj (tn, [], "table"), loc), c), loc)
+        in
+            pushENamedAs env x n t
+        end
 
 fun sgnSeek f sgis =
     let
@@ -737,14 +734,11 @@
       | DFfiStr (x, n, sgn) => pushStrNamedAs env x n sgn
       | DConstraint _ => env
       | DExport _ => env
-      | DTable (x, n, c) =>
-        (case lookupStr env "Basis" of
-             NONE => raise Fail "ElabEnv.declBinds: Can't find Basis"
-           | SOME (n, _) =>
-             let
-                 val t = (CApp ((CModProj (n, [], "table"), loc), c), loc)
-             in
-                 pushENamedAs env x n t
-             end)
+      | DTable (tn, x, n, c) =>
+        let
+            val t = (CApp ((CModProj (tn, [], "table"), loc), c), loc)
+        in
+            pushENamedAs env x n t
+        end
 
 end