aboutsummaryrefslogtreecommitdiff
path: root/cmd/eval/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/eval/main.go')
-rw-r--r--cmd/eval/main.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/cmd/eval/main.go b/cmd/eval/main.go
index 152824c..cd593a3 100644
--- a/cmd/eval/main.go
+++ b/cmd/eval/main.go
@@ -1,18 +1,16 @@
package main
import (
- "context"
-
"dim13.org/j1"
"dim13.org/j1/console"
)
func main() {
- vm := j1.New()
+ con := console.New()
+ defer con.Stop()
+ vm := j1.New(con)
if err := vm.LoadFile("testdata/j1e.bin"); err != nil {
panic(err)
}
- ctx, cancel := context.WithCancel(context.Background())
- defer cancel()
- vm.Run(ctx, cancel, console.New(ctx))
+ vm.Run()
}