Documentation ¶
Index ¶
Constants ¶
View Source
const ( StackSize = 2048 MaxFrames = 1024 MaxGlobals = 65536 )
Variables ¶
Functions ¶
Types ¶
type Frame ¶
type Frame struct {
// contains filtered or unexported fields
}
func (*Frame) Instructions ¶
func (f *Frame) Instructions() code.Instructions
type VM ¶
type VM struct { Debug bool // contains filtered or unexported fields }
func NewWithState ¶ added in v1.3.0
func (*VM) LastPopped ¶
type VMState ¶ added in v1.3.0
type VMState struct { Constants []object.Object Globals []object.Object Symbols *compiler.SymbolTable }
func NewVMState ¶ added in v1.3.0
func NewVMState() *VMState
func (*VMState) ExportedHash ¶ added in v1.3.0
ExportedHash returns a new Hash with the names and values of every publically exported binding in the vm state. That is every binding that starts with a capital letter. This is used by the module import system to wrap up the compiled and evaulated module into an object.
Click to show internal directories.
Click to hide internal directories.