about summary refs log tree commit diff
path: root/cmd/vm
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-08-11 01:25:47 +0000
committerMel <einebeere@gmail.com>2022-08-11 01:25:47 +0000
commit86f31acf6789be116dcc54ed85b069a37c0f7aa8 (patch)
treebc7afd6a8c340825996d29c6cfd392ae42b4fbd5 /cmd/vm
parentc46b2bc7ce6df1f2c6c9494ef08015ec29992da5 (diff)
downloadjinx-86f31acf6789be116dcc54ed85b069a37c0f7aa8.tar.zst
jinx-86f31acf6789be116dcc54ed85b069a37c0f7aa8.zip
Actual modules and core
Diffstat (limited to 'cmd/vm')
-rw-r--r--cmd/vm/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/vm/main.go b/cmd/vm/main.go
index 5ee954e..ecebcbf 100644
--- a/cmd/vm/main.go
+++ b/cmd/vm/main.go
@@ -4,6 +4,7 @@ import (
 	"flag"
 	"fmt"
 	"io"
+	"jinx/pkg/lang/modules"
 	"jinx/pkg/lang/vm"
 	"jinx/pkg/lang/vm/code"
 	"jinx/pkg/lang/vm/text"
@@ -90,7 +91,7 @@ func main() {
 	}
 
 	if *run {
-		vm := vm.New(&bc, nil)
+		vm := vm.New(modules.NewUnknownModule(&bc))
 		if err := vm.Run(); err != nil {
 			exit("execution failed: %v", err)
 		}