diff --git a/.fermi.go.swp b/.fermi.go.swp deleted file mode 100644 index c7848d5..0000000 Binary files a/.fermi.go.swp and /dev/null differ diff --git a/fermi.go b/fermi.go index ca596cf..babf122 100644 --- 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] == ")":