commit 4c6fb35ac2656d74b43bc8f0c337e2185691e898
parent 239e21509fddc21f28af1d26182099cdc204f296
Author: NunoSempere <nuno.semperelh@protonmail.com>
Date: Tue, 18 Jun 2024 22:46:06 -0400
fenshui
Diffstat:
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/.fermi.go.swp b/.fermi.go.swp
Binary files differ.
diff --git a/fermi.go b/fermi.go
@@ -359,7 +359,7 @@ func runRepl(stack Stack, reader *bufio.Reader) Stack {
continue replForLoop
/* Parenthesis */
case len(words) == 2 && (words[0] == "*" || words[0] == "+" || words[0] == "-" || words[0] == "/") && words[1] == "(":
- new_stack := runRepl(Stack{old_dist: INIT_DIST, vars: stack.vars}, reader)
+ new_stack := runRepl(Stack{old_dist: INIT_DIST, vars: stack.vars}, reader) // to do: think if I want to shadow variables or not (right now, variables persist, since I'm copying the map(.
stack = operateStackWithDist(stack, new_stack.old_dist, words[0])
prettyPrintDist(stack.old_dist)
case len(words) == 1 && words[0] == ")":