aboutsummaryrefslogtreecommitdiff
path: root/cmd/eval/main.go
blob: 152824c0cd7a5cb05cda7bee9c93a7a3c1ce9f86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package main

import (
	"context"

	"dim13.org/j1"
	"dim13.org/j1/console"
)

func main() {
	vm := j1.New()
	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))
}