Documentation
¶
Index ¶
- Variables
- func RunCode(codeA string, objA interface{}, optsA ...string) interface{}
- type FuncContext
- type Instr
- type Regs
- type UndefinedStruct
- type VarRef
- type XieVM
- func (p *XieVM) CallFunc(codeA string, argCountA int) string
- func (p *XieVM) Debug()
- func (p *XieVM) ErrStrf(formatA string, argsA ...interface{}) string
- func (p *XieVM) GetRegs() *Regs
- func (p *XieVM) GetValue(codeA int, vA interface{}) interface{}
- func (p *XieVM) GetVar(keyA string) interface{}
- func (p *XieVM) GetVarInt(keyA int) interface{}
- func (p *XieVM) GetVarRef(vA VarRef) *interface{}
- func (p *XieVM) GetVarValue(vA VarRef) interface{}
- func (p *XieVM) GetVarValueGlobal(vA VarRef) interface{}
- func (p *XieVM) GetVars() []interface{}
- func (p *XieVM) GoFunc(codeA string, argCountA int) string
- func (p *XieVM) InitVM(globalsA ...map[string]interface{})
- func (p *XieVM) Load(codeA string) string
- func (p *XieVM) ParseLine(commandA string) ([]string, error)
- func (p *XieVM) ParseVar(strA string) VarRef
- func (p *XieVM) Peek() interface{}
- func (p *XieVM) Pop() interface{}
- func (p *XieVM) PopFunc() int
- func (p *XieVM) Pops() string
- func (p *XieVM) Push(vA interface{})
- func (p *XieVM) PushFunc()
- func (p *XieVM) PushVar(vA interface{})
- func (p *XieVM) Run(posA ...int) string
- func (p *XieVM) RunLine(lineA int) interface{}
- func (p *XieVM) SetVar(keyA string, vA interface{})
- func (p *XieVM) SetVarGlobal(keyA string, vA interface{})
- func (p *XieVM) SetVarInt(keyA int, vA interface{}) error
- func (p *XieVM) SetVarIntGlobal(keyA int, vA interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var InstrNameSet map[string]int = map[string]int{
"pass": 101,
"debug": 102,
"debugInfo": 103,
"isUndef": 111,
"goto": 180,
"exit": 199,
"push": 220,
"push$": 221,
"peek": 222,
"peek$": 223,
"pop": 224,
"pop$": 225,
"peek*": 226,
"pop*": 227,
"pushInt": 231,
"pushInt$": 232,
"pushInt#": 233,
"pushInt*": 234,
"global": 201,
"var": 203,
"regInt": 310,
"regInt#": 312,
"assign": 401,
"assign$": 402,
"assignInt": 410,
"assignI": 411,
"assignGlobal": 491,
"if": 610,
"if$": 611,
"if*": 612,
"ifNot$": 621,
"==": 701,
">i": 710,
"<i": 720,
"<i$": 721,
"<i*": 722,
"inc": 809,
"inc$": 810,
"dec$": 811,
"dec*": 812,
"intAdd": 820,
"intAdd$": 821,
"intDiv": 831,
"floatAdd": 840,
"floatDiv": 848,
"call": 1010,
"ret": 1020,
"callFunc": 1050,
"goFunc": 1060,
"addItem": 1110,
"addStrItem": 1111,
"backQuote": 1501,
"quote": 1503,
"unquote": 1504,
"trim": 1509,
"isEmpty": 1510,
"strAdd": 1520,
"now": 1910,
"nowStrCompact": 1911,
"nowStr": 1912,
"nowStrFormal": 1912,
"timeSub": 1921,
"getParam": 10001,
"getSwitch": 10002,
"ifSwitchExists": 10003,
"pln": 10410,
"plo": 10411,
"pl": 10420,
"plv": 10430,
"plErr": 10440,
"plErrStr": 10440,
"convert": 10810,
"convert$": 10811,
"isErrStr": 10910,
"getErrStr$": 10922,
"checkErrStr": 10931,
"writeResp": 20110,
"getWeb": 20210,
"htmlToText": 20310,
"regReplaceAllStr$": 20411,
"sleep": 20501,
}
Functions ¶
Types ¶
type FuncContext ¶
type UndefinedStruct ¶
type UndefinedStruct struct {
// contains filtered or unexported fields
}
var Undefined UndefinedStruct = UndefinedStruct{0}
func (UndefinedStruct) String ¶
func (o UndefinedStruct) String() string
type VarRef ¶
type VarRef struct { Ref int // -8 - pop, -7 - peek, -5 - push, -3 - var(string), > 0 normal vars Value interface{} }
type XieVM ¶
type XieVM struct { SourceM []string CodeListM []string InstrListM []Instr CodeSourceMapM map[int]int LabelsM map[int]int VarIndexMapM map[string]int VarNameMapM map[int]string CodePointerM int StackM []interface{} FuncStackM []FuncContext FuncContextM FuncContext CurrentFuncContextM *FuncContext }
func (*XieVM) GetVarValue ¶
func (*XieVM) GetVarValueGlobal ¶
func (*XieVM) SetVarGlobal ¶
func (*XieVM) SetVarIntGlobal ¶
Click to show internal directories.
Click to hide internal directories.