vm

package
v0.0.0-...-d6edeb9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Lidk = 0
	Llam = 1
	Lgen = 2
	Lfun = 3
	Lops = 4
)
View Source
const (
	Add = 1
	Sub = 2
	Mul = 3
	Div = 4
)
View Source
const (
	Eq  = 0
	Gt  = 1
	Ls  = -1
	IDK = -2
	Ne  = 2
)

Variables

This section is empty.

Functions

func Apply

func Apply(name string, vm *VM) error

func ApplyInNS

func ApplyInNS(name string, ns *NS, vm *VM) error

func BigCompare

func BigCompare(vm *VM, e1 *Elem, e2 *Elem) int

func BigToString

func BigToString(vm *VM, e *Elem) string

func Block2Dict

func Block2Dict(vm *VM, d *Elem) (*map[string]string, error)

func BlockAt

func BlockAt(d *Elem, t string, n int64) (interface{}, error)

func BlockGen

func BlockGen(vm *VM, args ...interface{}) error

func BlockLen

func BlockLen(d *Elem) int64

func BlockParser

func BlockParser(vm *VM, args ...interface{})

func Block_At

func Block_At(d *Elem, n int64) (interface{}, error)

func BoolCompare

func BoolCompare(vm *VM, e1 *Elem, e2 *Elem) int

func BoolToString

func BoolToString(vm *VM, e *Elem) string

func BooleanGen

func BooleanGen(vm *VM, args ...interface{}) error

func BooleanParser

func BooleanParser(vm *VM, args ...interface{})

func BundCompare

func BundCompare(vm *VM, e1 *Elem, e2 *Elem) int

func BundGen

func BundGen(vm *VM, args ...interface{}) error

func BundParser

func BundParser(vm *VM, args ...interface{})

func BundToString

func BundToString(vm *VM, e *Elem) string

func CallCompare

func CallCompare(vm *VM, e1 *Elem, e2 *Elem) int

func CallGen

func CallGen(vm *VM, args ...interface{}) error

func CallParser

func CallParser(vm *VM, args ...interface{})

func CallToString

func CallToString(vm *VM, e *Elem) string

func ComplexCompare

func ComplexCompare(vm *VM, e1 *Elem, e2 *Elem) int

func ComplexGen

func ComplexGen(vm *VM, args ...interface{}) error

func ComplexParser

func ComplexParser(vm *VM, args ...interface{})

func ComplexToString

func ComplexToString(vm *VM, e *Elem) string

func DBlockGen

func DBlockGen(vm *VM, args ...interface{}) error

func DBlockParser

func DBlockParser(vm *VM, args ...interface{})

func DblockCompare

func DblockCompare(vm *VM, e1 *Elem, e2 *Elem) int

func DblockSame

func DblockSame(vm *VM, e1 *Elem, e2 *Elem) bool

func DblockSameArity

func DblockSameArity(vm *VM, e1 *Elem, e2 *Elem) bool

func DblockToString

func DblockToString(vm *VM, e *Elem) string

func DfCompare

func DfCompare(vm *VM, e1 *Elem, e2 *Elem) int

func DfToString

func DfToString(vm *VM, e *Elem) string

func EvalCmd

func EvalCmd(vm *VM, cmd *Elem)

func ExitBlockGen

func ExitBlockGen(vm *VM, args ...interface{}) error

func ExitBlockParser

func ExitBlockParser(vm *VM, args ...interface{})

func ExitDBlockGen

func ExitDBlockGen(vm *VM, args ...interface{}) error

func ExitDBlockParser

func ExitDBlockParser(vm *VM, args ...interface{})

func ExitFunctionGen

func ExitFunctionGen(vm *VM, args ...interface{}) error

func ExitFunctionParser

func ExitFunctionParser(vm *VM, args ...interface{})

func ExitGeneratorGen

func ExitGeneratorGen(vm *VM, args ...interface{}) error

func ExitGeneratorParser

func ExitGeneratorParser(vm *VM, args ...interface{})

func ExitLBlockGen

func ExitLBlockGen(vm *VM, args ...interface{}) error

func ExitLBlockParser

func ExitLBlockParser(vm *VM, args ...interface{})

func ExitLambdaGen

func ExitLambdaGen(vm *VM, args ...interface{}) error

func ExitLambdaParser

func ExitLambdaParser(vm *VM, args ...interface{})

func ExitMBlockGen

func ExitMBlockGen(vm *VM, args ...interface{}) error

func ExitMBlockParser

func ExitMBlockParser(vm *VM, args ...interface{})

func ExitNSGen

func ExitNSGen(vm *VM, args ...interface{}) error

func ExitNSParser

func ExitNSParser(vm *VM, args ...interface{})

func ExitOpGen

func ExitOpGen(vm *VM, args ...interface{}) error

func ExitOpParser

func ExitOpParser(vm *VM, args ...interface{})

func FileCompare

func FileCompare(vm *VM, e1 *Elem, e2 *Elem) int

func FileGen

func FileGen(vm *VM, args ...interface{}) error

func FileParser

func FileParser(vm *VM, args ...interface{})

func FileToString

func FileToString(vm *VM, e *Elem) string

func FloatCompare

func FloatCompare(vm *VM, e1 *Elem, e2 *Elem) int

func FloatGen

func FloatGen(vm *VM, args ...interface{}) error

func FloatParser

func FloatParser(vm *VM, args ...interface{})

func FloatToString

func FloatToString(vm *VM, e *Elem) string

func FunctionGen

func FunctionGen(vm *VM, args ...interface{}) error

func FunctionParser

func FunctionParser(vm *VM, args ...interface{})

func GeneratorGen

func GeneratorGen(vm *VM, args ...interface{}) error

func GeneratorParser

func GeneratorParser(vm *VM, args ...interface{})

func GlobCompare

func GlobCompare(vm *VM, e1 *Elem, e2 *Elem) int

func GlobGen

func GlobGen(vm *VM, args ...interface{}) error

func GlobParser

func GlobParser(vm *VM, args ...interface{})

func GlobToString

func GlobToString(vm *VM, e *Elem) string

func HtmlCompare

func HtmlCompare(vm *VM, e1 *Elem, e2 *Elem) int

func HtmlToString

func HtmlToString(vm *VM, e *Elem) string

func HttpCompare

func HttpCompare(vm *VM, e1 *Elem, e2 *Elem) int

func HttpGen

func HttpGen(vm *VM, args ...interface{}) error

func HttpParser

func HttpParser(vm *VM, args ...interface{})

func HttpToString

func HttpToString(vm *VM, e *Elem) string

func IndexGen

func IndexGen(vm *VM, args ...interface{}) error

func IndexParser

func IndexParser(vm *VM, args ...interface{})

func InitEvalFunctions

func InitEvalFunctions(vm *VM)

func InitFUNCTIONS

func InitFUNCTIONS(vm *VM)

func InitGPMOperators

func InitGPMOperators(vm *VM)

func InitHtmlFunctions

func InitHtmlFunctions(vm *VM)

func InitHttpFunctions

func InitHttpFunctions(vm *VM)

func InitIntervalFunctions

func InitIntervalFunctions(vm *VM)

func InitJsonFunctions

func InitJsonFunctions(vm *VM)

func InitMatFunctions

func InitMatFunctions(vm *VM)

func InitMathFunctions

func InitMathFunctions(vm *VM)

func InitOpCmp

func InitOpCmp(vm *VM)

func InitOpMath

func InitOpMath(vm *VM)

func InitOpPercent

func InitOpPercent(vm *VM)

func InitOpcodeBlock

func InitOpcodeBlock(vm *VM)

func InitOpcodeBoolean

func InitOpcodeBoolean(vm *VM)

func InitOpcodeBund

func InitOpcodeBund(vm *VM)

func InitOpcodeCall

func InitOpcodeCall(vm *VM)

func InitOpcodeComplex

func InitOpcodeComplex(vm *VM)

func InitOpcodeDBlock

func InitOpcodeDBlock(vm *VM)

func InitOpcodeExitNs

func InitOpcodeExitNs(vm *VM)

func InitOpcodeFile

func InitOpcodeFile(vm *VM)

func InitOpcodeFloat

func InitOpcodeFloat(vm *VM)

func InitOpcodeFunction

func InitOpcodeFunction(vm *VM)

func InitOpcodeGenerator

func InitOpcodeGenerator(vm *VM)

func InitOpcodeGlob

func InitOpcodeGlob(vm *VM)

func InitOpcodeHttp

func InitOpcodeHttp(vm *VM)

func InitOpcodeIndex

func InitOpcodeIndex(vm *VM)

func InitOpcodeInteger

func InitOpcodeInteger(vm *VM)

func InitOpcodeJson

func InitOpcodeJson(vm *VM)

func InitOpcodeLBlock

func InitOpcodeLBlock(vm *VM)

func InitOpcodeLambda

func InitOpcodeLambda(vm *VM)

func InitOpcodeMBlock

func InitOpcodeMBlock(vm *VM)

func InitOpcodeNs

func InitOpcodeNs(vm *VM)

func InitOpcodeOperator

func InitOpcodeOperator(vm *VM)

func InitOpcodeRCall

func InitOpcodeRCall(vm *VM)

func InitOpcodeSeparate

func InitOpcodeSeparate(vm *VM)

func InitOpcodeString

func InitOpcodeString(vm *VM)

func InitOpcodeUnixcmd

func InitOpcodeUnixcmd(vm *VM)

func InitPctFunctions

func InitPctFunctions(vm *VM)

func InitPrintFunctions

func InitPrintFunctions(vm *VM)

func InitReturnFunctions

func InitReturnFunctions(vm *VM)

func InitRndFunctions

func InitRndFunctions(vm *VM)

func InitStringFunctions

func InitStringFunctions(vm *VM)

func InitSystemFunctions

func InitSystemFunctions(vm *VM)

func InitVFSFunctions

func InitVFSFunctions(vm *VM)

func IntegerGen

func IntegerGen(vm *VM, args ...interface{}) error

func IntegerParser

func IntegerParser(vm *VM, args ...interface{})

func IntervalCompare

func IntervalCompare(vm *VM, e1 *Elem, e2 *Elem) int

func IntervalToString

func IntervalToString(vm *VM, e *Elem) string

func JsonCompare

func JsonCompare(vm *VM, e1 *Elem, e2 *Elem) int

func JsonGen

func JsonGen(vm *VM, args ...interface{}) error

func JsonParser

func JsonParser(vm *VM, args ...interface{})

func JsonToString

func JsonToString(vm *VM, e *Elem) string

func LBlockGen

func LBlockGen(vm *VM, args ...interface{}) error

func LBlockParser

func LBlockParser(vm *VM, args ...interface{})

func LambdaGen

func LambdaGen(vm *VM, args ...interface{}) error

func LambdaParser

func LambdaParser(vm *VM, args ...interface{})

func MBlockGen

func MBlockGen(vm *VM, args ...interface{}) error

func MBlockParser

func MBlockParser(vm *VM, args ...interface{})

func MatCompare

func MatCompare(vm *VM, e1 *Elem, e2 *Elem) int

func MatToString

func MatToString(vm *VM, e *Elem) string

func NSGen

func NSGen(vm *VM, args ...interface{}) error

func NSParser

func NSParser(vm *VM, args ...interface{})

func OpGen

func OpGen(vm *VM, args ...interface{}) error

func OpParser

func OpParser(vm *VM, args ...interface{})

func PctCompare

func PctCompare(vm *VM, e1 *Elem, e2 *Elem) int

func PctToString

func PctToString(vm *VM, e *Elem) string

func RCallGen

func RCallGen(vm *VM, args ...interface{}) error

func RCallParser

func RCallParser(vm *VM, args ...interface{})

func RegisterBoolean

func RegisterBoolean(vm *VM)

func RegisterBund

func RegisterBund(vm *VM)

func RegisterCALL

func RegisterCALL(vm *VM)

func RegisterCpx

func RegisterCpx(vm *VM)

func RegisterDblock

func RegisterDblock(vm *VM)

func RegisterDf

func RegisterDf(vm *VM)

func RegisterFile

func RegisterFile(vm *VM)

func RegisterFloat

func RegisterFloat(vm *VM)

func RegisterGlob

func RegisterGlob(vm *VM)

func RegisterHtml

func RegisterHtml(vm *VM)

func RegisterHttp

func RegisterHttp(vm *VM)

func RegisterInt

func RegisterInt(vm *VM)

func RegisterInterval

func RegisterInterval(vm *VM)

func RegisterJson

func RegisterJson(vm *VM)

func RegisterMatrix

func RegisterMatrix(vm *VM)

func RegisterPerceptron

func RegisterPerceptron(vm *VM)

func RegisterSep

func RegisterSep(vm *VM)

func RegisterStack

func RegisterStack(vm *VM)

func RegisterString

func RegisterString(vm *VM)

func RegisterUnix

func RegisterUnix(vm *VM)

func SepCompare

func SepCompare(vm *VM, e1 *Elem, e2 *Elem) int

func SepToString

func SepToString(vm *VM, e *Elem) string

func SeparateGen

func SeparateGen(vm *VM, args ...interface{}) error

func SeparateParser

func SeparateParser(vm *VM, args ...interface{})

func SimpleEvalCmd

func SimpleEvalCmd(vm *VM, cmd *Elem)

func StackCompare

func StackCompare(vm *VM, e1 *Elem, e2 *Elem) int

func StackToString

func StackToString(vm *VM, e *Elem) string

func StrGen

func StrGen(vm *VM, args ...interface{}) error

func StrParser

func StrParser(vm *VM, args ...interface{})

func StringCompare

func StringCompare(vm *VM, e1 *Elem, e2 *Elem) int

func StringDeepCopy

func StringDeepCopy(s string) string

func StringToString

func StringToString(vm *VM, e *Elem) string

func UnixCompare

func UnixCompare(vm *VM, e1 *Elem, e2 *Elem) int

func UnixToString

func UnixToString(vm *VM, e *Elem) string

func UnixcmdGen

func UnixcmdGen(vm *VM, args ...interface{}) error

func UnixcmdParser

func UnixcmdParser(vm *VM, args ...interface{})

Types

type ApplyFun

type ApplyFun func(v *VM, e1 *Elem, f func(interface{}) interface{}) (*Elem, error)

type CompareFun

type CompareFun func(v *VM, e1 *Elem, e2 *Elem) int

type DupFun

type DupFun func(v *VM, e *Elem) *Elem

type Elem

type Elem struct {
	Name    string
	Type    string
	Value   interface{}
	Prefun  string
	Functor string
}

func AddOperator

func AddOperator(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func AndFunction

func AndFunction(vm *VM, e *Elem) (*Elem, error)

func AtBlock

func AtBlock(d *Elem, n int64) (*Elem, error)

func BigAdd

func BigAdd(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func BigApply

func BigApply(v *VM, e1 *Elem, f func(interface{}) interface{}) (*Elem, error)

func BigDiv

func BigDiv(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func BigDup

func BigDup(vm *VM, e *Elem) *Elem

func BigFactory

func BigFactory(vm *VM) *Elem

func BigFromString

func BigFromString(vm *VM, d string) *Elem

func BigMul

func BigMul(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func BigSub

func BigSub(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func BlockEval

func BlockEval(vm *VM, args ...interface{}) (*Elem, error)

func BlockExec

func BlockExec(vm *VM, args ...interface{}) (*Elem, error)

func BlockLambda

func BlockLambda(vm *VM, args ...interface{}) (*Elem, error)

func BoolDup

func BoolDup(vm *VM, e *Elem) *Elem

func BoolFactory

func BoolFactory(vm *VM) *Elem

func BoolFromString

func BoolFromString(vm *VM, d string) *Elem

func BooleanEval

func BooleanEval(vm *VM, args ...interface{}) (*Elem, error)

func BooleanExec

func BooleanExec(vm *VM, args ...interface{}) (*Elem, error)

func BooleanLambda

func BooleanLambda(vm *VM, args ...interface{}) (*Elem, error)

func BundDup

func BundDup(vm *VM, e *Elem) *Elem

func BundEval

func BundEval(vm *VM, args ...interface{}) (*Elem, error)

func BundExec

func BundExec(vm *VM, args ...interface{}) (*Elem, error)

func BundFactory

func BundFactory(vm *VM) *Elem

func BundFromString

func BundFromString(vm *VM, d string) *Elem

func BundLambda

func BundLambda(vm *VM, args ...interface{}) (*Elem, error)

func CallDup

func CallDup(vm *VM, e *Elem) *Elem

func CallEval

func CallEval(vm *VM, args ...interface{}) (*Elem, error)

func CallExec

func CallExec(vm *VM, args ...interface{}) (*Elem, error)

func CallFactory

func CallFactory(vm *VM) *Elem

func CallFromString

func CallFromString(vm *VM, d string) *Elem

func CallLambda

func CallLambda(vm *VM, args ...interface{}) (*Elem, error)

func ChangeOperator

func ChangeOperator(vm *VM, e *Elem, e1 *Elem) (*Elem, error)

func ComplexDup

func ComplexDup(vm *VM, e *Elem) *Elem

func ComplexEval

func ComplexEval(vm *VM, args ...interface{}) (*Elem, error)

func ComplexExec

func ComplexExec(vm *VM, args ...interface{}) (*Elem, error)

func ComplexFactory

func ComplexFactory(vm *VM) *Elem

func ComplexFromString

func ComplexFromString(vm *VM, d string) *Elem

func ComplexLambda

func ComplexLambda(vm *VM, args ...interface{}) (*Elem, error)

func CpxAdd

func CpxAdd(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func CpxApply

func CpxApply(v *VM, e1 *Elem, f func(interface{}) interface{}) (*Elem, error)

func CpxDiv

func CpxDiv(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func CpxMul

func CpxMul(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func CpxSub

func CpxSub(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func DBlockEval

func DBlockEval(vm *VM, args ...interface{}) (*Elem, error)

func DBlockExec

func DBlockExec(vm *VM, args ...interface{}) (*Elem, error)

func DBlockLambda

func DBlockLambda(vm *VM, args ...interface{}) (*Elem, error)

func DblockAdd

func DblockAdd(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func DblockApply

func DblockApply(v *VM, e1 *Elem, f func(interface{}) interface{}) (*Elem, error)

func DblockDiv

func DblockDiv(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func DblockDup

func DblockDup(vm *VM, e *Elem) *Elem

func DblockFactory

func DblockFactory(vm *VM) *Elem

func DblockFromString

func DblockFromString(vm *VM, d string) *Elem

func DblockMul

func DblockMul(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func DblockSprintf

func DblockSprintf(e *Elem) *Elem

func DblockSub

func DblockSub(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func DblockWalk

func DblockWalk(vm *VM, e *Elem, f func(float64) float64) (*Elem, error)

func DblocksMathOnOperator

func DblocksMathOnOperator(vm *VM, e1 *Elem, e2 *Elem, op int) (*Elem, error)

func DblocksMathOp

func DblocksMathOp(vm *VM, e1 *Elem, e2 *Elem, op int) (*Elem, error)

func DblocksMathOperator

func DblocksMathOperator(vm *VM, e1 *Elem, e2 *Elem, op int) (*Elem, error)

func DfDup

func DfDup(vm *VM, e *Elem) *Elem

func DfFactory

func DfFactory(vm *VM) *Elem

func DfFromString

func DfFromString(vm *VM, d string) *Elem

func DivOperator

func DivOperator(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func DropElement

func DropElement(vm *VM, e *Elem) (*Elem, error)

func DropOppositeElement

func DropOppositeElement(vm *VM, e *Elem) (*Elem, error)

func DupElement

func DupElement(vm *VM, e *Elem) (*Elem, error)

func EqOperator

func EqOperator(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func EvalCurrentElement

func EvalCurrentElement(vm *VM, e *Elem) (*Elem, error)

func EvalElement

func EvalElement(vm *VM, e *Elem) (*Elem, error)

func EvalInElement

func EvalInElement(vm *VM, e *Elem, e1 *Elem) (*Elem, error)

func ExecuteElement

func ExecuteElement(vm *VM, e *Elem) (*Elem, error)

func ExitBlockEval

func ExitBlockEval(vm *VM, args ...interface{}) (*Elem, error)

func ExitBlockExec

func ExitBlockExec(vm *VM, args ...interface{}) (*Elem, error)

func ExitBlockLambda

func ExitBlockLambda(vm *VM, args ...interface{}) (*Elem, error)

func ExitDBlockEval

func ExitDBlockEval(vm *VM, args ...interface{}) (*Elem, error)

func ExitDBlockExec

func ExitDBlockExec(vm *VM, args ...interface{}) (*Elem, error)

func ExitDBlockLambda

func ExitDBlockLambda(vm *VM, args ...interface{}) (*Elem, error)

func ExitFALSEBlockEval

func ExitFALSEBlockEval(vm *VM, args ...interface{}) (*Elem, error)

func ExitFun

func ExitFun(vm *VM, e *Elem) (*Elem, error)

func ExitFunctionEval

func ExitFunctionEval(vm *VM, args ...interface{}) (*Elem, error)

func ExitFunctionExec

func ExitFunctionExec(vm *VM, args ...interface{}) (*Elem, error)

func ExitFunctionLambda

func ExitFunctionLambda(vm *VM, args ...interface{}) (*Elem, error)

func ExitGeneratorEval

func ExitGeneratorEval(vm *VM, args ...interface{}) (*Elem, error)

func ExitGeneratorExec

func ExitGeneratorExec(vm *VM, args ...interface{}) (*Elem, error)

func ExitGeneratorLambda

func ExitGeneratorLambda(vm *VM, args ...interface{}) (*Elem, error)

func ExitLBlockEval

func ExitLBlockEval(vm *VM, args ...interface{}) (*Elem, error)

func ExitLBlockExec

func ExitLBlockExec(vm *VM, args ...interface{}) (*Elem, error)

func ExitLBlockLambda

func ExitLBlockLambda(vm *VM, args ...interface{}) (*Elem, error)

func ExitLambdaEval

func ExitLambdaEval(vm *VM, args ...interface{}) (*Elem, error)

func ExitLambdaExec

func ExitLambdaExec(vm *VM, args ...interface{}) (*Elem, error)

func ExitLambdaLambda

func ExitLambdaLambda(vm *VM, args ...interface{}) (*Elem, error)

func ExitMBlockEval

func ExitMBlockEval(vm *VM, args ...interface{}) (*Elem, error)

func ExitMBlockExec

func ExitMBlockExec(vm *VM, args ...interface{}) (*Elem, error)

func ExitMBlockLambda

func ExitMBlockLambda(vm *VM, args ...interface{}) (*Elem, error)

func ExitNSEval

func ExitNSEval(vm *VM, args ...interface{}) (*Elem, error)

func ExitNSExec

func ExitNSExec(vm *VM, args ...interface{}) (*Elem, error)

func ExitNSLambda

func ExitNSLambda(vm *VM, args ...interface{}) (*Elem, error)

func ExitOpEval

func ExitOpEval(vm *VM, args ...interface{}) (*Elem, error)

func ExitOpExec

func ExitOpExec(vm *VM, args ...interface{}) (*Elem, error)

func ExitOpLambda

func ExitOpLambda(vm *VM, args ...interface{}) (*Elem, error)

func ExitTRUEBlockEval

func ExitTRUEBlockEval(vm *VM, args ...interface{}) (*Elem, error)

func FALSEBlockEval

func FALSEBlockEval(vm *VM, args ...interface{}) (*Elem, error)

func FileDup

func FileDup(vm *VM, e *Elem) *Elem

func FileEval

func FileEval(vm *VM, args ...interface{}) (*Elem, error)

func FileExec

func FileExec(vm *VM, args ...interface{}) (*Elem, error)

func FileFactory

func FileFactory(vm *VM) *Elem

func FileFromString

func FileFromString(vm *VM, d string) *Elem

func FileLambda

func FileLambda(vm *VM, args ...interface{}) (*Elem, error)

func FloatApply

func FloatApply(v *VM, e1 *Elem, f func(interface{}) interface{}) (*Elem, error)

func FloatDup

func FloatDup(vm *VM, e *Elem) *Elem

func FloatEval

func FloatEval(vm *VM, args ...interface{}) (*Elem, error)

func FloatExec

func FloatExec(vm *VM, args ...interface{}) (*Elem, error)

func FloatFactory

func FloatFactory(vm *VM) *Elem

func FloatFromString

func FloatFromString(vm *VM, d string) *Elem

func FloatLambda

func FloatLambda(vm *VM, args ...interface{}) (*Elem, error)

func FltAdd

func FltAdd(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func FltDiv

func FltDiv(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func FltMul

func FltMul(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func FltRandomElement

func FltRandomElement(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func FltSub

func FltSub(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func FunctionEval

func FunctionEval(vm *VM, args ...interface{}) (*Elem, error)

func FunctionExec

func FunctionExec(vm *VM, args ...interface{}) (*Elem, error)

func FunctionLambda

func FunctionLambda(vm *VM, args ...interface{}) (*Elem, error)

func GTEQqOperator

func GTEQqOperator(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func GTqOperator

func GTqOperator(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func GeneratorEval

func GeneratorEval(vm *VM, args ...interface{}) (*Elem, error)

func GeneratorExec

func GeneratorExec(vm *VM, args ...interface{}) (*Elem, error)

func GeneratorLambda

func GeneratorLambda(vm *VM, args ...interface{}) (*Elem, error)

func GetAlias

func GetAlias(vm *VM, e *Elem) (*Elem, error)

func GlobDup

func GlobDup(vm *VM, e *Elem) *Elem

func GlobEval

func GlobEval(vm *VM, args ...interface{}) (*Elem, error)

func GlobExec

func GlobExec(vm *VM, args ...interface{}) (*Elem, error)

func GlobFactory

func GlobFactory(vm *VM) *Elem

func GlobFromString

func GlobFromString(vm *VM, d string) *Elem

func GlobLambda

func GlobLambda(vm *VM, args ...interface{}) (*Elem, error)

func GlobPatternMatchLongestPrefixOperator

func GlobPatternMatchLongestPrefixOperator(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func GlobPatternMatchLongestSuffixOperator

func GlobPatternMatchLongestSuffixOperator(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func GlobPatternMatchOperator

func GlobPatternMatchOperator(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func GlobPatternMatchPrefixOperator

func GlobPatternMatchPrefixOperator(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func GlobPatternMatchSuffixOperator

func GlobPatternMatchSuffixOperator(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func HtmlAttrGetElement

func HtmlAttrGetElement(vm *VM, e *Elem, e1 *Elem) (*Elem, error)

func HtmlDup

func HtmlDup(vm *VM, e *Elem) *Elem

func HtmlElement

func HtmlElement(vm *VM, e *Elem) (*Elem, error)

func HtmlFactory

func HtmlFactory(vm *VM) *Elem

func HtmlFindElement

func HtmlFindElement(vm *VM, e *Elem, e1 *Elem) (*Elem, error)

func HtmlFromString

func HtmlFromString(vm *VM, d string) *Elem

func HtmlGetElement

func HtmlGetElement(vm *VM, e *Elem, e1 *Elem) (*Elem, error)

func HttpDup

func HttpDup(vm *VM, e *Elem) *Elem

func HttpEval

func HttpEval(vm *VM, args ...interface{}) (*Elem, error)

func HttpExec

func HttpExec(vm *VM, args ...interface{}) (*Elem, error)

func HttpFactory

func HttpFactory(vm *VM) *Elem

func HttpFromString

func HttpFromString(vm *VM, d string) *Elem

func HttpGetElement

func HttpGetElement(vm *VM, e *Elem) (*Elem, error)

func HttpLambda

func HttpLambda(vm *VM, args ...interface{}) (*Elem, error)

func HttpPostElement

func HttpPostElement(vm *VM, e *Elem) (*Elem, error)

func HttpSetAgentElement

func HttpSetAgentElement(vm *VM, e *Elem, e1 *Elem) (*Elem, error)

func HttpSetDataElement

func HttpSetDataElement(vm *VM, e *Elem, e1 *Elem) (*Elem, error)

func HttpSetHeadersElement

func HttpSetHeadersElement(vm *VM, e *Elem, e1 *Elem) (*Elem, error)

func HttpSetParamsElement

func HttpSetParamsElement(vm *VM, e *Elem, e1 *Elem) (*Elem, error)

func HttpSetProxyElement

func HttpSetProxyElement(vm *VM, e *Elem, e1 *Elem) (*Elem, error)

func IndexEval

func IndexEval(vm *VM, args ...interface{}) (*Elem, error)

func IndexExec

func IndexExec(vm *VM, args ...interface{}) (*Elem, error)

func IndexLambda

func IndexLambda(vm *VM, args ...interface{}) (*Elem, error)

func IntRandomElement

func IntRandomElement(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func IntegerEval

func IntegerEval(vm *VM, args ...interface{}) (*Elem, error)

func IntegerExec

func IntegerExec(vm *VM, args ...interface{}) (*Elem, error)

func IntegerLambda

func IntegerLambda(vm *VM, args ...interface{}) (*Elem, error)

func IntervalDup

func IntervalDup(vm *VM, e *Elem) *Elem

func IntervalElement

func IntervalElement(vm *VM) (*Elem, error)

func IntervalElementAdd

func IntervalElementAdd(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func IntervalElementRange

func IntervalElementRange(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func IntervalElementStdDev

func IntervalElementStdDev(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func IntervalElementTest

func IntervalElementTest(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func IntervalFactory

func IntervalFactory(vm *VM) *Elem

func IntervalFromString

func IntervalFromString(vm *VM, d string) *Elem

func JsonArrayAddElement

func JsonArrayAddElement(vm *VM, e *Elem, d *Elem) (*Elem, error)

func JsonArrayGetElement

func JsonArrayGetElement(vm *VM, e *Elem, d *Elem) (*Elem, error)

func JsonArrayNewElement

func JsonArrayNewElement(vm *VM, e *Elem, d *Elem) (*Elem, error)

func JsonDup

func JsonDup(vm *VM, e *Elem) *Elem

func JsonEval

func JsonEval(vm *VM, args ...interface{}) (*Elem, error)

func JsonExec

func JsonExec(vm *VM, args ...interface{}) (*Elem, error)

func JsonFactory

func JsonFactory(vm *VM) *Elem

func JsonFromString

func JsonFromString(vm *VM, d string) *Elem

func JsonGetElement

func JsonGetElement(vm *VM, e *Elem, d *Elem) (*Elem, error)

func JsonLambda

func JsonLambda(vm *VM, args ...interface{}) (*Elem, error)

func JsonNewElement

func JsonNewElement(vm *VM, e *Elem) (*Elem, error)

func JsonSetElement

func JsonSetElement(vm *VM, e *Elem, d *Elem) (*Elem, error)

func LBlockEval

func LBlockEval(vm *VM, args ...interface{}) (*Elem, error)

func LBlockExec

func LBlockExec(vm *VM, args ...interface{}) (*Elem, error)

func LBlockLambda

func LBlockLambda(vm *VM, args ...interface{}) (*Elem, error)

func LSEQqOperator

func LSEQqOperator(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func LSqOperator

func LSqOperator(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func LambdaEval

func LambdaEval(vm *VM, args ...interface{}) (*Elem, error)

func LambdaExec

func LambdaExec(vm *VM, args ...interface{}) (*Elem, error)

func LambdaLambda

func LambdaLambda(vm *VM, args ...interface{}) (*Elem, error)

func LenFun

func LenFun(vm *VM) (*Elem, error)

func MBlockEval

func MBlockEval(vm *VM, args ...interface{}) (*Elem, error)

func MBlockExec

func MBlockExec(vm *VM, args ...interface{}) (*Elem, error)

func MBlockLambda

func MBlockLambda(vm *VM, args ...interface{}) (*Elem, error)

func MatAdd

func MatAdd(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func MatApply

func MatApply(v *VM, e1 *Elem, f func(interface{}) interface{}) (*Elem, error)

func MatDiv

func MatDiv(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func MatDup

func MatDup(vm *VM, e *Elem) *Elem

func MatFactory

func MatFactory(vm *VM) *Elem

func MatFromString

func MatFromString(vm *VM, d string) *Elem

func MatMathOp

func MatMathOp(vm *VM, e1 *Elem, e2 *Elem, op int) (*Elem, error)

func MatMathOperator

func MatMathOperator(vm *VM, e1 *Elem, e2 *Elem, op int) (*Elem, error)

func MatMul

func MatMul(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func MatSub

func MatSub(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func MathCosElement

func MathCosElement(vm *VM, e *Elem) (*Elem, error)

func MathExpElement

func MathExpElement(vm *VM, e *Elem) (*Elem, error)

func MathLog10Element

func MathLog10Element(vm *VM, e *Elem) (*Elem, error)

func MathLogElement

func MathLogElement(vm *VM, e *Elem) (*Elem, error)

func MathPiElement

func MathPiElement(vm *VM, e *Elem) (*Elem, error)

func MathSinElement

func MathSinElement(vm *VM, e *Elem) (*Elem, error)

func MathSqrtElement

func MathSqrtElement(vm *VM, e *Elem) (*Elem, error)

func MathTanElement

func MathTanElement(vm *VM, e *Elem) (*Elem, error)

func MatrixElement

func MatrixElement(vm *VM, e *Elem) (*Elem, error)

func MatrixElementBlock

func MatrixElementBlock(vm *VM, e *Elem) (*Elem, error)

func MatrixElementGet

func MatrixElementGet(vm *VM, e *Elem, e1 *Elem) (*Elem, error)

func MatrixElementMake

func MatrixElementMake(vm *VM, e *Elem) (*Elem, error)

func MatrixElementSet

func MatrixElementSet(vm *VM, e *Elem, e1 *Elem) (*Elem, error)

func MatrixWalk

func MatrixWalk(vm *VM, e *Elem, f func(float64) float64) (*Elem, error)

func MulOperator

func MulOperator(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func NEqOperator

func NEqOperator(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func NFun

func NFun(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func NOTElement

func NOTElement(vm *VM, e *Elem) (*Elem, error)

func NSEval

func NSEval(vm *VM, args ...interface{}) (*Elem, error)

func NSExec

func NSExec(vm *VM, args ...interface{}) (*Elem, error)

func NSLambda

func NSLambda(vm *VM, args ...interface{}) (*Elem, error)

func NameFun

func NameFun(vm *VM) (*Elem, error)

func NoopApply

func NoopApply(v *VM, e1 *Elem, f func(interface{}) interface{}) (*Elem, error)

func NoopFunction

func NoopFunction(v *VM, e1 *Elem) (*Elem, error)

func NoopGenerator

func NoopGenerator(v *VM) (*Elem, error)

func NoopOperator

func NoopOperator(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func OpEval

func OpEval(vm *VM, args ...interface{}) (*Elem, error)

func OpExec

func OpExec(vm *VM, args ...interface{}) (*Elem, error)

func OpLambda

func OpLambda(vm *VM, args ...interface{}) (*Elem, error)

func OrFunction

func OrFunction(vm *VM, e *Elem) (*Elem, error)

func PassthrougElement

func PassthrougElement(vm *VM, e *Elem) (*Elem, error)

func PctDup

func PctDup(vm *VM, e *Elem) *Elem

func PctElement

func PctElement(vm *VM, e *Elem) (*Elem, error)

func PctFactory

func PctFactory(vm *VM) *Elem

func PctFromString

func PctFromString(vm *VM, d string) *Elem

func PctUpdElement

func PctUpdElement(vm *VM, e *Elem) (*Elem, error)

func PercentOfOperator

func PercentOfOperator(vm *VM, e *Elem, e1 *Elem) (*Elem, error)

func PercentOperator

func PercentOperator(vm *VM, e *Elem, e1 *Elem) (*Elem, error)

func PrimeRandomElement

func PrimeRandomElement(vm *VM, e *Elem) (*Elem, error)

func PrintElement

func PrintElement(vm *VM, e *Elem) (*Elem, error)

func PrintStack

func PrintStack(vm *VM) (*Elem, error)

func PrintlnElement

func PrintlnElement(vm *VM, e *Elem) (*Elem, error)

func RCallEval

func RCallEval(vm *VM, args ...interface{}) (*Elem, error)

func RCallExec

func RCallExec(vm *VM, args ...interface{}) (*Elem, error)

func RCallLambda

func RCallLambda(vm *VM, args ...interface{}) (*Elem, error)

func ReturnElement

func ReturnElement(vm *VM, e *Elem) (*Elem, error)

func ReturnElementAndKeepOriginal

func ReturnElementAndKeepOriginal(vm *VM, e *Elem) (*Elem, error)

func ReturnElementFrom

func ReturnElementFrom(vm *VM, e *Elem) (*Elem, error)

func ReturnElementFromAndKeepOriginal

func ReturnElementFromAndKeepOriginal(vm *VM, e *Elem) (*Elem, error)

func ReturnElementTo

func ReturnElementTo(vm *VM, e *Elem, e2 *Elem) (*Elem, error)

func RotateBackElement

func RotateBackElement(vm *VM, e *Elem) (*Elem, error)

func RotateFrontElement

func RotateFrontElement(vm *VM, e *Elem) (*Elem, error)

func SepDup

func SepDup(vm *VM, e *Elem) *Elem

func SepFactory

func SepFactory(vm *VM) *Elem

func SepFromString

func SepFromString(vm *VM, d string) *Elem

func SeparateEval

func SeparateEval(vm *VM, args ...interface{}) (*Elem, error)

func SeparateExec

func SeparateExec(vm *VM, args ...interface{}) (*Elem, error)

func SeparateLambda

func SeparateLambda(vm *VM, args ...interface{}) (*Elem, error)

func SeqFun

func SeqFun(vm *VM, e *Elem) (*Elem, error)

func SetAlias

func SetAlias(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func SleepFun

func SleepFun(vm *VM, e *Elem) (*Elem, error)

func StackDup

func StackDup(vm *VM, e *Elem) *Elem

func StackFactory

func StackFactory(vm *VM) *Elem

func StackFromString

func StackFromString(vm *VM, d string) *Elem

func StrEval

func StrEval(vm *VM, args ...interface{}) (*Elem, error)

func StrExec

func StrExec(vm *VM, args ...interface{}) (*Elem, error)

func StrLambda

func StrLambda(vm *VM, args ...interface{}) (*Elem, error)

func StringAdd

func StringAdd(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func StringApply

func StringApply(v *VM, e1 *Elem, f func(interface{}) interface{}) (*Elem, error)

func StringDup

func StringDup(vm *VM, e *Elem) *Elem

func StringFactory

func StringFactory(vm *VM) *Elem

func StringFromString

func StringFromString(vm *VM, d string) *Elem

func StringLinesElement

func StringLinesElement(vm *VM, e *Elem) (*Elem, error)

func StringTrimElement

func StringTrimElement(vm *VM, e *Elem) (*Elem, error)

func SubOperator

func SubOperator(vm *VM, e1 *Elem, e2 *Elem) (*Elem, error)

func TRUEBlockEval

func TRUEBlockEval(vm *VM, args ...interface{}) (*Elem, error)

func TypeFun

func TypeFun(vm *VM, e *Elem) (*Elem, error)

func UnixDup

func UnixDup(vm *VM, e *Elem) *Elem

func UnixFactory

func UnixFactory(vm *VM) *Elem

func UnixFromString

func UnixFromString(vm *VM, d string) *Elem

func UnixcmdEval

func UnixcmdEval(vm *VM, args ...interface{}) (*Elem, error)

func UnixcmdExec

func UnixcmdExec(vm *VM, args ...interface{}) (*Elem, error)

func UnixcmdLambda

func UnixcmdLambda(vm *VM, args ...interface{}) (*Elem, error)

func UseFun

func UseFun(v *VM, e1 *Elem) (*Elem, error)

func VfsFileCloseElement

func VfsFileCloseElement(vm *VM, e *Elem) (*Elem, error)

func VfsFileElement

func VfsFileElement(vm *VM, e *Elem) (*Elem, error)

func VfsFileExistsElement

func VfsFileExistsElement(vm *VM, e *Elem) (*Elem, error)

func VfsFileReadElement

func VfsFileReadElement(vm *VM, e *Elem) (*Elem, error)

func VfsFileWriteElement

func VfsFileWriteElement(vm *VM, e *Elem, e1 *Elem) (*Elem, error)

type ElemHandler

type ElemHandler struct {
	Type       string
	Factory    FactoryFun
	ToString   ToStringFun
	FromString FromStringFun
	Compare    CompareFun
	Duplicate  DupFun
	Add        OperatorFun
	Sub        OperatorFun
	Mul        OperatorFun
	Div        OperatorFun
	Apply      ApplyFun
}

type FactoryFun

type FactoryFun func(v *VM) *Elem

type FromStringFun

type FromStringFun func(v *VM, d string) *Elem

type FunctionFun

type FunctionFun func(v *VM, e1 *Elem) (*Elem, error)

type GenFun

type GenFun func(v *VM) (*Elem, error)

type HTTP

type HTTP struct {
	URL string
	RO  *grequests.RequestOptions
}

type Interval

type Interval struct {
	Start float64
	End   float64
}

type NS

type NS struct {
	Name              string
	VM                *VM
	Stack             deque.Deque
	Fun               *cmap.Cmap
	Ops               *cmap.Cmap
	Gen               *cmap.Cmap
	Options           cmap.Cmap
	LambdasStack      deque.Deque
	LSMode            deque.Deque
	Aliases           cmap.Cmap
	CurrentLambdaName string
	LCache            cmap.Cmap
}

func NewNS

func NewNS(v *VM, name string) *NS

func (*NS) AddToLCache

func (ns *NS) AddToLCache(name string, e *Elem)

func (*NS) CloseFunction

func (ns *NS) CloseFunction() bool

func (*NS) CloseGenerator

func (ns *NS) CloseGenerator() bool

func (*NS) CloseLambda

func (ns *NS) CloseLambda() bool

func (*NS) CloseOperator

func (ns *NS) CloseOperator() bool

func (*NS) CurrentFunction

func (ns *NS) CurrentFunction() *deque.Deque

func (*NS) CurrentGenerator

func (ns *NS) CurrentGenerator() *deque.Deque

func (*NS) CurrentLambda

func (ns *NS) CurrentLambda() *deque.Deque

func (*NS) CurrentOperator

func (ns *NS) CurrentOperator() *deque.Deque

func (*NS) GetAlias

func (ns *NS) GetAlias(key string) interface{}

func (*NS) GetFunction

func (ns *NS) GetFunction(name string) *deque.Deque

func (*NS) GetGenerator

func (ns *NS) GetGenerator(name string) *deque.Deque

func (*NS) GetLambda

func (ns *NS) GetLambda(name string) *deque.Deque

func (*NS) GetOperator

func (ns *NS) GetOperator(name string) *deque.Deque

func (*NS) GetOption

func (ns *NS) GetOption(key string, deflt interface{}) interface{}

func (*NS) HasFunction

func (ns *NS) HasFunction(name string) bool

func (*NS) HasGenerator

func (ns *NS) HasGenerator(name string) bool

func (*NS) HasLambda

func (ns *NS) HasLambda(name string) bool

func (*NS) HasOperator

func (ns *NS) HasOperator(name string) bool

func (*NS) HaveFunction

func (ns *NS) HaveFunction(name string) *deque.Deque

func (*NS) HaveGenerator

func (ns *NS) HaveGenerator(name string) *deque.Deque

func (*NS) HaveLambda

func (ns *NS) HaveLambda(name string) *deque.Deque

func (*NS) HaveOperator

func (ns *NS) HaveOperator(name string) *deque.Deque

func (*NS) InFunction

func (ns *NS) InFunction(name string) bool

func (*NS) InGenerator

func (ns *NS) InGenerator(name string) bool

func (*NS) InLCache

func (ns *NS) InLCache(name string) bool

func (*NS) InLambda

func (ns *NS) InLambda(name string) bool

func (*NS) InOperator

func (ns *NS) InOperator(name string) bool

func (*NS) LCacheDel

func (ns *NS) LCacheDel(name string)

func (*NS) LCacheGet

func (ns *NS) LCacheGet(name string) []Elem

func (*NS) NameOfCurrentFunction

func (ns *NS) NameOfCurrentFunction() string

func (*NS) NameOfCurrentGenerator

func (ns *NS) NameOfCurrentGenerator() string

func (*NS) NameOfCurrentLambda

func (ns *NS) NameOfCurrentLambda() string

func (*NS) NameOfCurrentOperator

func (ns *NS) NameOfCurrentOperator() string

func (*NS) SetAlias

func (ns *NS) SetAlias(key string, val interface{})

func (*NS) SetOption

func (ns *NS) SetOption(key string, val interface{})

type OPCODE

type OPCODE struct {
	Name     string
	InParser OpcodeParserFun
	InLambda OpcodeInLambdaFun
	InEval   OpcodeEvalFun
	InGen    OpcodeGenerationFun
	InExec   OpcodeExecFun
}

type OpcodeEvalFun

type OpcodeEvalFun func(v *VM, args ...interface{}) (*Elem, error)

type OpcodeExecFun

type OpcodeExecFun func(v *VM, args ...interface{}) (*Elem, error)

type OpcodeGenerationFun

type OpcodeGenerationFun func(v *VM, args ...interface{}) error

type OpcodeInLambdaFun

type OpcodeInLambdaFun func(v *VM, args ...interface{}) (*Elem, error)

type OpcodeParserFun

type OpcodeParserFun func(v *VM, args ...interface{})

type OperatorFun

type OperatorFun func(v *VM, e1 *Elem, e2 *Elem) (*Elem, error)

type PERCEPTRON

type PERCEPTRON struct {
	T      [][][]float64
	In     int
	Out    int
	Hidden int
	D      int
	Epoch  int
	Rate   float64
	MFact  float64
	Lerr   bool
	P      *gobrain.FeedForward
}

type ToStringFun

type ToStringFun func(v *VM, e *Elem) string

type VM

type VM struct {
	Name        string
	Mode        bool
	IsIgnore    deque.Deque
	NSStack     deque.Deque
	NS          cmap.Cmap
	Current     *deque.Deque
	CurrentNS   *NS
	CurrentElem *Elem
	RootNS      *NS
	Options     cmap.Cmap
	Opcodes     cmap.Cmap
	Types       cmap.Cmap
	Functions   cmap.Cmap
	Operators   cmap.Cmap
	Generators  cmap.Cmap
}

func NewVM

func NewVM(name string) *VM

func (*VM) AddFunction

func (vm *VM) AddFunction(name string, fn FunctionFun) bool

func (*VM) AddGen

func (vm *VM) AddGen(name string, fn GenFun) bool

func (*VM) AddOperator

func (vm *VM) AddOperator(name string, fn OperatorFun) bool

func (*VM) AlwaysRunOp

func (vm *VM) AlwaysRunOp(t string, args ...interface{})

func (*VM) Apply

func (vm *VM) Apply(name string) error

func (*VM) AsNS

func (vm *VM) AsNS(name string) *NS

func (*VM) CanGet

func (vm *VM) CanGet() bool

func (*VM) CblockMatch

func (vm *VM) CblockMatch(q *deque.Deque, e *Elem) bool

func (*VM) CheckIgnore

func (vm *VM) CheckIgnore() bool

func (*VM) CurrentFunction

func (vm *VM) CurrentFunction() *deque.Deque

func (*VM) CurrentLambda

func (vm *VM) CurrentLambda() *deque.Deque

func (*VM) DbgFun

func (vm *VM) DbgFun(pos int, cmd *Elem)

func (*VM) DbgStack

func (vm *VM) DbgStack(msg string, cmd *Elem)

func (*VM) Debug

func (vm *VM) Debug(msg string, args ...interface{})

func (*VM) DelNS

func (vm *VM) DelNS(name string)

func (*VM) EndNS

func (vm *VM) EndNS() *NS

func (*VM) Error

func (vm *VM) Error(msg string, args ...interface{})

func (*VM) EvalCmd

func (vm *VM) EvalCmd(cmd *Elem)

func (*VM) Exec

func (vm *VM) Exec(e *Elem) (*Elem, error)

func (*VM) Fatal

func (vm *VM) Fatal(msg string, args ...interface{})

func (*VM) GenType

func (vm *VM) GenType(t string, ff FactoryFun, ts ToStringFun, fs FromStringFun, cf CompareFun, df DupFun) *ElemHandler

func (*VM) Get

func (vm *VM) Get() *Elem

func (*VM) GetCurrentLambda

func (vm *VM) GetCurrentLambda(name string) *deque.Deque

func (*VM) GetFunction

func (vm *VM) GetFunction(name string) (FunctionFun, error)

func (*VM) GetGen

func (vm *VM) GetGen(name string) (GenFun, error)

func (*VM) GetNS

func (vm *VM) GetNS(name string) *NS

func (*VM) GetOperator

func (vm *VM) GetOperator(name string) (OperatorFun, error)

func (*VM) GetType

func (vm *VM) GetType(t string) (*ElemHandler, error)

func (*VM) HasUserFunction

func (vm *VM) HasUserFunction(name string) bool

func (*VM) HasUserFunctionInNS

func (vm *VM) HasUserFunctionInNS(name string, nsname string) bool

func (*VM) Ignore

func (vm *VM) Ignore()

func (*VM) InLambda

func (vm *VM) InLambda() bool

func (*VM) Info

func (vm *VM) Info(msg string, args ...interface{})

func (*VM) IsStack

func (vm *VM) IsStack() bool

func (*VM) LambdaRunOp

func (vm *VM) LambdaRunOp(t string, args ...interface{})

func (*VM) LexerPrint

func (vm *VM) LexerPrint(code string)

func (*VM) MustIgnore

func (vm *VM) MustIgnore() bool

func (*VM) NotIgnore

func (vm *VM) NotIgnore()

func (*VM) OnError

func (vm *VM) OnError(err error, msg string, args ...interface{})

func (*VM) Opcode

func (vm *VM) Opcode(t string) *OPCODE

func (*VM) ParserExec

func (vm *VM) ParserExec(code string) *VM

func (*VM) ParserPrint

func (vm *VM) ParserPrint(code string)

func (*VM) Put

func (vm *VM) Put(e *Elem) bool

func (*VM) RegisterOpcode

func (*VM) RegisterOpcodes

func (vm *VM) RegisterOpcodes()

func (*VM) RegisterType

func (vm *VM) RegisterType(t string, ff FactoryFun, ts ToStringFun, fs FromStringFun, cf CompareFun, df DupFun) bool

func (*VM) RegisterTypes

func (vm *VM) RegisterTypes()

func (*VM) RunOp

func (vm *VM) RunOp(t string, args ...interface{})

func (*VM) Separate

func (vm *VM) Separate() *Elem

func (*VM) SetType

func (vm *VM) SetType(t string, eh *ElemHandler) bool

func (*VM) SetUserFunctionInNS

func (vm *VM) SetUserFunctionInNS(nsname string, name string, c *deque.Deque) bool

func (*VM) Take

func (vm *VM) Take() *Elem

func (*VM) TakeOpposite

func (vm *VM) TakeOpposite() *Elem

func (*VM) Warning

func (vm *VM) Warning(msg string, args ...interface{})

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址