aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-23 14:59:14 +0200
committerJulien Dessaux2021-09-23 14:59:14 +0200
commitf86b5724e530ec86eed04ebeb257293244f4be69 (patch)
tree0ceaddd9f08229899eb94f7134a048c5b36d9ba4 /cmd
parentEach pointer needs its own stack, merging the two packages to avoid a circula... (diff)
downloadgofunge98-f86b5724e530ec86eed04ebeb257293244f4be69.tar.gz
gofunge98-f86b5724e530ec86eed04ebeb257293244f4be69.tar.bz2
gofunge98-f86b5724e530ec86eed04ebeb257293244f4be69.zip
Moved the character execution's to the pointer in order to handle the k command
Diffstat (limited to 'cmd')
-rw-r--r--cmd/headless_interpreter/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/headless_interpreter/main.go b/cmd/headless_interpreter/main.go
index 73b71dc..9bed538 100644
--- a/cmd/headless_interpreter/main.go
+++ b/cmd/headless_interpreter/main.go
@@ -38,5 +38,6 @@ func main() {
os.Exit(3)
}
- interpreter.NewInterpreter(f, pointer.NewPointer()).Run()
+ v := interpreter.NewInterpreter(f, pointer.NewPointer()).Run()
+ os.Exit(v)
}