about summary refs log tree commit diff
path: root/cmd/compmod/compiled.tmpl
blob: 2070749269dda4bfaff5b063ff7f5c342d9ba0d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package {{.Module}}

import (
	"jinx/pkg/lang/modules"
	"jinx/pkg/lang/vm/code"
)

var moduleCompiled = []byte{
	{{.Bytes}}
}

var moduleCode = code.New(code.Raw(moduleCompiled), code.NewDebugInfo("{{.Module}}"))

var Module = modules.NewModule(
	"",
	"{{.Module}}",
	&moduleCode,
	[]modules.ModuleRef{},
	[]string{
		{{range .Globals}}"{{.}}", {{end}}
	},
)