diff src/elab_env.sml @ 109:813e5a52063d

Remove closure conversion in favor of zany fun with modules, which also replaces 'page'
author Adam Chlipala <adamc@hcoop.net>
date Sun, 13 Jul 2008 10:17:06 -0400
parents f0f59e918cac
children e3041657d653
line wrap: on
line diff
--- a/src/elab_env.sml	Thu Jul 10 16:05:14 2008 -0400
+++ b/src/elab_env.sml	Sun Jul 13 10:17:06 2008 -0400
@@ -91,6 +91,14 @@
 
 val namedCounter = ref 0
 
+fun newNamed () =
+    let
+        val r = !namedCounter
+    in
+        namedCounter := r + 1;
+        r
+    end
+
 val empty = {
     renameC = SM.empty,
     relC = [],
@@ -292,7 +300,7 @@
       | DStr (x, n, sgn, _) => pushStrNamedAs env x n sgn
       | DFfiStr (x, n, sgn) => pushStrNamedAs env x n sgn
       | DConstraint _ => env
-      | DPage _ => env
+      | DExport _ => env
 
 fun sgiBinds env (sgi, _) =
     case sgi of