Documentation
¶
Index ¶
- Constants
- Variables
- func ClearTable(s *LState, t *LTable)
- type FunctionProto
- type LBool
- type LFunction
- type LGFunction
- type LState
- type LString
- type LTable
- type LValue
- type VM
- type VMPool
- type VMPoolBuilder
- func (vpb *VMPoolBuilder) Build() (vmp *VMPool, err error)
- func (vpb *VMPoolBuilder) Clone() *VMPoolBuilder
- func (sp *VMPoolBuilder) WithApply(apply interfaces.FuncIter[*VM]) *VMPoolBuilder
- func (sp *VMPoolBuilder) WithCompiled(compiled *FunctionProto) *VMPoolBuilder
- func (sp *VMPoolBuilder) WithReader(r io.Reader) *VMPoolBuilder
- func (vpb *VMPoolBuilder) WithRequire(v LGFunction) *VMPoolBuilder
- func (sp *VMPoolBuilder) WithScript(script string) *VMPoolBuilder
- func (vpb *VMPoolBuilder) WithSearcher(v LGFunction) *VMPoolBuilder
Constants ¶
Variables ¶
Functions ¶
Types ¶
type FunctionProto ¶
type FunctionProto = lua.FunctionProto
func CompileReader ¶
func CompileReader(reader io.Reader) (compiled *FunctionProto, err error)
type LGFunction ¶
type LGFunction = lua.LGFunction
type VMPool ¶
type VMPool struct {
interfaces.PoolWithErrorsPtr[VM, *VM]
Require LGFunction
Searcher LGFunction
// contains filtered or unexported fields
}
func MakeVMPoolWithRequire ¶
func MakeVMPoolWithRequire( script string, require LGFunction, apply interfaces.FuncIter[*VM], ) (ml *VMPool, err error)
func MakeVMPoolWithSearcher ¶
func MakeVMPoolWithSearcher( script string, searcher LGFunction, apply interfaces.FuncIter[*VM], ) (ml *VMPool, err error)
func (*VMPool) PrepareVM ¶
func (*VMPool) SetCompiled ¶
func (sp *VMPool) SetCompiled( compiled *FunctionProto, apply interfaces.FuncIter[*VM], ) (err error)
type VMPoolBuilder ¶
type VMPoolBuilder struct {
// contains filtered or unexported fields
}
func (*VMPoolBuilder) Build ¶
func (vpb *VMPoolBuilder) Build() (vmp *VMPool, err error)
func (*VMPoolBuilder) Clone ¶
func (vpb *VMPoolBuilder) Clone() *VMPoolBuilder
func (*VMPoolBuilder) WithApply ¶
func (sp *VMPoolBuilder) WithApply( apply interfaces.FuncIter[*VM], ) *VMPoolBuilder
func (*VMPoolBuilder) WithCompiled ¶
func (sp *VMPoolBuilder) WithCompiled( compiled *FunctionProto, ) *VMPoolBuilder
func (*VMPoolBuilder) WithReader ¶
func (sp *VMPoolBuilder) WithReader( r io.Reader, ) *VMPoolBuilder
func (*VMPoolBuilder) WithRequire ¶
func (vpb *VMPoolBuilder) WithRequire(v LGFunction) *VMPoolBuilder
func (*VMPoolBuilder) WithScript ¶
func (sp *VMPoolBuilder) WithScript( script string, ) *VMPoolBuilder
func (*VMPoolBuilder) WithSearcher ¶
func (vpb *VMPoolBuilder) WithSearcher(v LGFunction) *VMPoolBuilder
Source Files
¶
- compile.go
- main.go
- table.go
- vm.go
- vm_builder.go
- vm_pool.go
- vm_pool_builder.go
Click to show internal directories.
Click to hide internal directories.