Documentation
¶
Index ¶
Constants ¶
View Source
const GlobalsSize = 65536
View Source
const MaxFrames = 1024
View Source
const StackSize = 2048
Variables ¶
View Source
var False = &object.Boolean{Value: false}
View Source
var Null = &object.Null{}
View Source
var True = &object.Boolean{Value: true}
Functions ¶
This section is empty.
Types ¶
type Frame ¶
type Frame struct {
// contains filtered or unexported fields
}
func (*Frame) Instructions ¶
func (f *Frame) Instructions() code.Instructions
type VirtualMachine ¶
type VirtualMachine struct {
// contains filtered or unexported fields
}
func New ¶
func New(bytecode *compiler.Bytecode) *VirtualMachine
func NewWithGlobalsStore ¶
func NewWithGlobalsStore(bytecode *compiler.Bytecode, s []object.Object) *VirtualMachine
func (*VirtualMachine) LastPoppedStackElem ¶
func (vm *VirtualMachine) LastPoppedStackElem() object.Object
func (*VirtualMachine) Run ¶
func (vm *VirtualMachine) Run() error
func (*VirtualMachine) StackTop ¶
func (vm *VirtualMachine) StackTop() object.Object
Click to show internal directories.
Click to hide internal directories.