fenshui
This commit is contained in:
parent
239e21509f
commit
4c6fb35ac2
BIN
.fermi.go.swp
BIN
.fermi.go.swp
Binary file not shown.
2
fermi.go
2
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] == ")":
|
||||
|
|
Loading…
Reference in New Issue
Block a user