Documentation ¶
Index ¶
- Constants
- func ToBool(rt *Runtime, o Object) (bool, error)
- func ToFunc(rt *Runtime, o Object) (unsafe.Pointer, uint8, error)
- func ToNative(rt *Runtime, o Object) (unsafe.Pointer, unsafe.Pointer, error)
- func ToOption(rt *Runtime, o Object) (Object, []Object, error)
- func ToRecordFields(rt *Runtime, o Object) ([]struct{ ... }, error)
- func ToUnit(rt *Runtime, o Object) (struct{}, error)
- type DefName
- type Id
- type InstanceKind
- type ModuleName
- type Object
- type Runtime
- func (rt *Runtime) AppendFrameMemory(mem unsafe.Pointer)
- func (rt *Runtime) Apply(defName bytecode.FullIdentifier, args ...Object) (Object, error)
- func (rt *Runtime) ApplyFunc(fn Object, args ...Object) (Object, error)
- func (rt *Runtime) Clean(keepCapacity bool)
- func (rt *Runtime) Destroy()
- func (rt *Runtime) FreeFrameMemory(free func(unsafe.Pointer))
- func (rt *Runtime) Id() Id
- func (rt *Runtime) NewBool(b bool) Object
- func (rt *Runtime) NewChar(r TChar) Object
- func (rt *Runtime) NewFloat(f TFloat) Object
- func (rt *Runtime) NewFunc(ptr unsafe.Pointer, arity uint8) Object
- func (rt *Runtime) NewFunc0(f func() Object) Object
- func (rt *Runtime) NewFunc1(f func(Object) Object) Object
- func (rt *Runtime) NewFunc2(f func(Object, Object) Object) Object
- func (rt *Runtime) NewFunc3(f func(Object, Object, Object) Object) Object
- func (rt *Runtime) NewFunc4(f func(Object, Object, Object, Object) Object) Object
- func (rt *Runtime) NewFunc5(f func(Object, Object, Object, Object, Object) Object) Object
- func (rt *Runtime) NewFunc6(f func(Object, Object, Object, Object, Object, Object) Object) Object
- func (rt *Runtime) NewFunc7(f func(Object, Object, Object, Object, Object, Object, Object) Object) Object
- func (rt *Runtime) NewFunc8(f func(Object, Object, Object, Object, Object, Object, Object, Object) Object) Object
- func (rt *Runtime) NewInt(i TInt) Object
- func (rt *Runtime) NewList(elems ...Object) Object
- func (rt *Runtime) NewListItem(value Object, next Object) Object
- func (rt *Runtime) NewNative(ptr unsafe.Pointer, cmp unsafe.Pointer) Object
- func (rt *Runtime) NewOption(optionName TString, values ...Object) Object
- func (rt *Runtime) NewOptionWithTypeName(dataTypeName TString, optionName TString, values ...Object) Object
- func (rt *Runtime) NewRecord(keys []TString, values []Object) Object
- func (rt *Runtime) NewString(s TString) Object
- func (rt *Runtime) NewTuple(items ...Object) Object
- func (rt *Runtime) NewUnit() Object
- func (rt *Runtime) RegisterDef(moduleName bytecode.QualifiedIdentifier, name ast.Identifier, def Object)
- func (rt *Runtime) Stack() []string
- type TChar
- type TFloat
- type TInt
- type TSize
- type TString
Constants ¶
View Source
const KDebug = false
Variables ¶
This section is empty.
Functions ¶
func ToRecordFields ¶
Types ¶
type InstanceKind ¶
type InstanceKind uint8
const ( InstanceKindUnknown InstanceKind = iota InstanceKindUnit InstanceKindInt InstanceKindFloat InstanceKindString InstanceKindChar InstanceKindRecord InstanceKindTuple InstanceKindList InstanceKindOption InstanceKindFunction InstanceKindClosure InstanceKindNative )
type ModuleName ¶
type ModuleName string
type Object ¶
type Object uint64
func FindRecordField ¶
func UpdateRecordField ¶
func (Object) Kind ¶
func (o Object) Kind() InstanceKind
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func (*Runtime) AppendFrameMemory ¶ added in v1.0.2
func (*Runtime) FreeFrameMemory ¶ added in v1.0.2
func (*Runtime) NewListItem ¶ added in v1.0.2
func (*Runtime) NewOptionWithTypeName ¶
func (*Runtime) RegisterDef ¶
func (rt *Runtime) RegisterDef(moduleName bytecode.QualifiedIdentifier, name ast.Identifier, def Object)
Click to show internal directories.
Click to hide internal directories.