diff options
author | Julien Dessaux | 2021-09-23 14:59:14 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-09-23 14:59:14 +0200 |
commit | f86b5724e530ec86eed04ebeb257293244f4be69 (patch) | |
tree | 0ceaddd9f08229899eb94f7134a048c5b36d9ba4 /cmd/headless_interpreter | |
parent | Each pointer needs its own stack, merging the two packages to avoid a circula... (diff) | |
download | gofunge98-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 '')
-rw-r--r-- | cmd/headless_interpreter/main.go | 3 |
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) } |