aboutsummaryrefslogtreecommitdiff
path: root/cmd/headless_interpreter/main.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-24 01:26:49 +0200
committerJulien Dessaux2021-09-24 01:26:49 +0200
commitda7e7dae2b690308fb7ff3aba34145233c740bce (patch)
treec836da7165fa8ef26f7d7342c08635f0a35b0065 /cmd/headless_interpreter/main.go
parentImplemented commands until helloworld works \o/ (diff)
downloadgofunge98-da7e7dae2b690308fb7ff3aba34145233c740bce.tar.gz
gofunge98-da7e7dae2b690308fb7ff3aba34145233c740bce.tar.bz2
gofunge98-da7e7dae2b690308fb7ff3aba34145233c740bce.zip
Made the interpreter pass most of the mycology test suite
Diffstat (limited to 'cmd/headless_interpreter/main.go')
-rw-r--r--cmd/headless_interpreter/main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/headless_interpreter/main.go b/cmd/headless_interpreter/main.go
index 9bed538..8bf97c4 100644
--- a/cmd/headless_interpreter/main.go
+++ b/cmd/headless_interpreter/main.go
@@ -37,7 +37,8 @@ func main() {
fmt.Printf("Failed to load file %s : %+v", *filename, err)
os.Exit(3)
}
-
- v := interpreter.NewInterpreter(f, pointer.NewPointer()).Run()
+ p := pointer.NewPointer()
+ p.Argv = []string{*filename}
+ v := interpreter.NewInterpreter(f, p).Run()
os.Exit(v)
}