mirror of
https://github.com/Baidicoot/rpncalc-v4
synced 2024-12-04 23:39:56 +00:00
fixed definitions
This commit is contained in:
parent
ea57cc4cc5
commit
a1bacc3988
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
tests.txt.js
|
2
eval.js
2
eval.js
@ -149,7 +149,7 @@ const doStep = (ins, stack) => {
|
|||||||
if (instruction.type === "push") {
|
if (instruction.type === "push") {
|
||||||
pushS(makeObj(instruction.elem), stack);
|
pushS(makeObj(instruction.elem), stack);
|
||||||
} else if (instruction.type === "defn") {
|
} else if (instruction.type === "defn") {
|
||||||
defn(ins.defn, ins.ident, stack);
|
defn(instruction.defn, instruction.ident, stack);
|
||||||
} else {
|
} else {
|
||||||
apply(makeObj(instruction), stack);
|
apply(makeObj(instruction), stack);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user