vm

package
v0.0.0-...-9483064 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Program

type Program struct {
	Instructions []bytecode.Instruction
	Constants    []bytecode.Constant
}

func NewProgram

func NewProgram(instructions []bytecode.Instruction, constants []bytecode.Constant) *Program

func (*Program) Serialize

func (p *Program) Serialize() ([]byte, error)

type VM

type VM struct {
	// contains filtered or unexported fields
}

func NewVM

func NewVM(instructions []bytecode.Instruction, context map[string]interface{}, constants []bytecode.Constant) *VM

func (*VM) Release

func (vm *VM) Release()

func (*VM) Run

func (vm *VM) Run() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL