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

//go:generate file2go -in ../../testdata/j1e.bin

import (
	"context"

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

func main() {
	vm := j1.New()
	vm.LoadBytes(J1eBin)
	ctx, cancel := context.WithCancel(context.Background())
	defer cancel()
	vm.Run(ctx, cancel, console.New(ctx))
}