Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExceptionClass = value.NewClass("Exception", constants.EXCEPTION_CLASS_ID)
View Source
var RuntimeErrorClass = value.NewClass("RuntimeError", constants.RUNTIME_ERROR_CLASS_ID)
View Source
var SyntaxErrorClass = value.NewClass("SyntaxError", constants.SYNTAX_ERROR_CLASS_ID)
View Source
var TypeErrorClass = value.NewClass("TypeError", constants.TYPE_ERROR_CLASS_ID)
Functions ¶
func PrintChunk ¶
func PrintExceptionTable ¶
func PrintExceptionTable(t value.ExceptionTable, index int, internedStrings []string)
Types ¶
type CallFrame ¶
type VM ¶
type VM struct {
// contains filtered or unexported fields
}
func (*VM) DefineNative ¶
func (v *VM) DefineNative(name string, fn *value.NativeFunction)
func (*VM) InvokeBlock ¶
InvokeBlock, fn parameter is either *value.Function or *value.Closure
Click to show internal directories.
Click to hide internal directories.