Arithmetic

This commit is contained in:
Chuck Smith
2024-01-26 12:13:23 -05:00
parent e34991c081
commit b4cc771baa
6 changed files with 111 additions and 14 deletions

View File

@@ -46,7 +46,7 @@ func Start(in io.Reader, out io.Writer) {
continue
}
stackTop := machine.StackTop()
stackTop := machine.LastPoppedStackElem()
io.WriteString(out, stackTop.Inspect())
io.WriteString(out, "\n")
}