From da7e7dae2b690308fb7ff3aba34145233c740bce Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Fri, 24 Sep 2021 01:26:49 +0200 Subject: Made the interpreter pass most of the mycology test suite --- cmd/headless_interpreter/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd') 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) } -- cgit v1.2.3