diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7d9f423 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +tests.txt.js \ No newline at end of file diff --git a/eval.js b/eval.js index 428d8fc..5a75bb7 100644 --- a/eval.js +++ b/eval.js @@ -149,7 +149,7 @@ const doStep = (ins, stack) => { if (instruction.type === "push") { pushS(makeObj(instruction.elem), stack); } else if (instruction.type === "defn") { - defn(ins.defn, ins.ident, stack); + defn(instruction.defn, instruction.ident, stack); } else { apply(makeObj(instruction), stack); }