Documentation
¶
Index ¶
- Constants
- type Builtin
- type BuiltinFunc
- type ErrNoFunc
- type Error
- type Func
- type ObjID
- type Object
- type Runtime
- func (r *Runtime) AddString(s string) int
- func (r *Runtime) BuiltinNamePref() string
- func (r *Runtime) BuiltinPosOff() image.Point
- func (r *Runtime) CallByName(name string, caller, trigger Object, args ...interface{}) error
- func (r *Runtime) CallByPrefix(pref string, caller, trigger Object, args ...interface{}) error
- func (r *Runtime) CallFirst(isSwitchToSolo bool) error
- func (r *Runtime) FuncByInd(i int) *Func
- func (r *Runtime) FuncByName(name string) *Func
- func (r *Runtime) FuncByPref(pref string) []*Func
- func (r *Runtime) GetCaller() Object
- func (r *Runtime) GetString(i int) string
- func (r *Runtime) GetTrigger() Object
- func (r *Runtime) IndexByName(name string) int
- func (r *Runtime) LoadScript(sc *asm.Script) error
- func (r *Runtime) PanicsCompilerEnabled() bool
- func (r *Runtime) PopBool() bool
- func (r *Runtime) PopFloat32() float32
- func (r *Runtime) PopInt() int
- func (r *Runtime) PopInt32() int32
- func (r *Runtime) PopObjectID() ObjID
- func (r *Runtime) PopString() string
- func (r *Runtime) PopUint32() uint32
- func (r *Runtime) PushBool(v bool)
- func (r *Runtime) PushFloat32(v float32)
- func (r *Runtime) PushInt(v int)
- func (r *Runtime) PushInt32(v int32)
- func (r *Runtime) PushObject(v Object)
- func (r *Runtime) PushObjectID(v ObjID)
- func (r *Runtime) PushString(s string)
- func (r *Runtime) PushUint32(v uint32)
- func (r *Runtime) ReadScript(rd io.Reader) error
- func (r *Runtime) RegisterBuiltin(code int, b *Builtin)
- func (r *Runtime) Reset()
- func (r *Runtime) StackAt(i int) uint32
Constants ¶
View Source
const ( CallerID = ObjID(-1) TriggerID = ObjID(-2) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builtin ¶
type Builtin struct { Fnc BuiltinFunc NeedsNamePref bool NeedsPosOff bool ReadMore bool ReadEvenMore bool }
type BuiltinFunc ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func NewRuntime ¶
func NewRuntime() *Runtime
func (*Runtime) BuiltinNamePref ¶
func (*Runtime) BuiltinPosOff ¶
func (*Runtime) CallByName ¶
func (*Runtime) CallByPrefix ¶
func (*Runtime) FuncByName ¶
func (*Runtime) FuncByPref ¶
func (*Runtime) GetTrigger ¶
func (*Runtime) IndexByName ¶
func (*Runtime) PanicsCompilerEnabled ¶
func (*Runtime) PopFloat32 ¶
func (*Runtime) PopObjectID ¶
func (*Runtime) PushFloat32 ¶
func (*Runtime) PushObject ¶
func (*Runtime) PushObjectID ¶
func (*Runtime) PushString ¶
func (*Runtime) PushUint32 ¶
func (*Runtime) RegisterBuiltin ¶
Click to show internal directories.
Click to hide internal directories.