Made the interpreter pass most of the mycology test suite

This commit is contained in:
Julien Dessaux 2021-09-24 01:26:49 +02:00
parent 198efceb1f
commit da7e7dae2b
13 changed files with 206 additions and 35 deletions

View file

@ -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)
}