diff options
| author | Mel <einebeere@gmail.com> | 2022-08-17 00:07:35 +0000 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-08-17 00:07:35 +0000 |
| commit | be6cd2217b6bb1bb411d46ebd9d003dfd928af96 (patch) | |
| tree | 94e5807aae0fb65d2768adce594e245052ecf578 /cmd/vm | |
| parent | d84c0f36afcde4e5af2907d70931de75957d5277 (diff) | |
| download | jinx-be6cd2217b6bb1bb411d46ebd9d003dfd928af96.tar.zst jinx-be6cd2217b6bb1bb411d46ebd9d003dfd928af96.zip | |
Add different "say" outputs to VM
Diffstat (limited to 'cmd/vm')
| -rw-r--r-- | cmd/vm/main.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cmd/vm/main.go b/cmd/vm/main.go index ecebcbf..bb8f142 100644 --- a/cmd/vm/main.go +++ b/cmd/vm/main.go @@ -91,17 +91,10 @@ func main() { } if *run { - vm := vm.New(modules.NewUnknownModule(&bc)) + vm := vm.New(modules.NewUnknownModule(&bc), vm.NewConsoleOutput()) if err := vm.Run(); err != nil { exit("execution failed: %v", err) } - - res, err := vm.GetResult() - if err != nil { - exit("could not get result: %v", err) - } - - fmt.Println(res) } } |
