Skip to content
Snippets Groups Projects
Commit 0e0d95ff authored by Alan Schmitt's avatar Alan Schmitt Committed by Thomas Wood
Browse files

small changes

parent e57a59a0
No related branches found
No related tags found
No related merge requests found
...@@ -221,11 +221,11 @@ function env_push(x, v) { ...@@ -221,11 +221,11 @@ function env_push(x, v) {
} }
function ctx_empty() { function ctx_empty() {
return {}; return {tag: "env_nil"};
} }
function ctx_push(ctx, name, value) { function ctx_push(ctx, name, value) {
return {tail: ctx, name: name, value: value}; return {tag: "env_cons", env: ctx, name: name, val: value};
} }
function run_trm_wrap(t) { function run_trm_wrap(t) {
...@@ -439,6 +439,7 @@ for (var k = 0; k < datalog.length; k++) { ...@@ -439,6 +439,7 @@ for (var k = 0; k < datalog.length; k++) {
var item = datalog[k]; var item = datalog[k];
item.heap = jsheap_of_heap(item.heap); item.heap = jsheap_of_heap(item.heap);
item.env = jsenv_of_env(item.env); item.env = jsenv_of_env(item.env);
if (item.ctx !== undefined) {
item.ctx = jsenv_of_env(item.ctx);
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment