summaryrefslogtreecommitdiff
path: root/src/expl_env.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-08-31 08:46:22 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-08-31 08:46:22 -0400
commit773cc619b71ad10b8f21f6941d67947bac86885f (patch)
tree50f9c044e49642dd39c3a7574c193a2470174ca4 /src/expl_env.sml
parent5c3606a50dbe206eac3660135acba5855000a4ab (diff)
Explify tables
Diffstat (limited to 'src/expl_env.sml')
-rw-r--r--src/expl_env.sml13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/expl_env.sml b/src/expl_env.sml
index 9d715c1b..b2146474 100644
--- a/src/expl_env.sml
+++ b/src/expl_env.sml
@@ -282,6 +282,12 @@ fun declBinds env (d, loc) =
| DStr (x, n, sgn, _) => pushStrNamed env x n sgn
| DFfiStr (x, n, sgn) => pushStrNamed env x n sgn
| DExport _ => env
+ | DTable (tn, x, n, c) =>
+ let
+ val t = (CApp ((CModProj (tn, [], "table"), loc), c), loc)
+ in
+ pushENamed env x n t
+ end
fun sgiBinds env (sgi, loc) =
case sgi of
@@ -328,4 +334,11 @@ fun sgiBinds env (sgi, loc) =
| SgiSgn (x, n, sgn) => pushSgnNamed env x n sgn
| SgiStr (x, n, sgn) => pushStrNamed env x n sgn
+ | SgiTable (tn, x, n, c) =>
+ let
+ val t = (CApp ((CModProj (tn, [], "table"), loc), c), loc)
+ in
+ pushENamed env x n t
+ end
+
end