Documentation
¶
Index ¶
- Variables
- func And(rhsLen int) common.Instruction
- func ArrIndex() common.Instruction
- func Assign(op string, lhs *common.DataType) common.Instruction
- func BinaryOp(op string, lhs *common.DataType, rhs *common.DataType) common.Instruction
- func ChanRecv(nonBlock bool) common.Instruction
- func ChanSend(nonBlock bool) common.Instruction
- func ConnectInstructions(instructions []common.Instruction) common.Instruction
- func Construct(constructor common.Constructor, numParam int) common.Instruction
- func DelMap32Field(m interface{}, k interface{})
- func DelMap64Field(m interface{}, k interface{})
- func DelMapBoolField(m interface{}, k interface{})
- func DelMapIFaceField(m interface{}, k interface{})
- func DelMapStrField(m interface{}, k interface{})
- func DeleteMapKey(mapDelFunc func(m interface{}, k interface{})) common.Instruction
- func DeleteMessageField() common.Instruction
- func EnumString(rEnum map[int32]string) common.Instruction
- func FetchSymbol(symbol *common.Symbol, scope *common.Scope) common.Instruction
- func FetchSymbolLhs(symbol *common.Symbol, scope *common.Scope) common.Instruction
- func FunctionAssign(convert []common.Instruction) []common.Instruction
- func GetAppendReturnPlace(num int) common.Instruction
- func GetDynamicCallFunc(lenIn int) common.Instruction
- func GetMap32Field(m interface{}, k interface{}) interface{}
- func GetMap64Field(m interface{}, k interface{}) interface{}
- func GetMapBoolField(m interface{}, k interface{}) interface{}
- func GetMapIFaceField(m interface{}, k interface{}) interface{}
- func GetMapStrField(m interface{}, k interface{}) interface{}
- func GetSliceField(s interface{}, i int64) *interface{}
- func GetStaticCallFunc(funcPtr *common.Instruction, lenIn int) common.Instruction
- func GetTailArray(num int) common.Instruction
- func GlobalSymbolAssign(sym *common.Symbol) common.Instruction
- func IPow32(a, b int32) int32
- func IPow64(a, b int64) int64
- func Indirect() common.Instruction
- func InitializeMap(constructor common.Constructor, ...) common.Instruction
- func InitializeMessage(keys []string, num int) common.Instruction
- func InitializeSlice(num int) common.Instruction
- func LeftUnaryOp(op string, opType *common.DataType) common.Instruction
- func Len(lengthFunc LengthFunc) common.Instruction
- func LocalSymbolNil() common.Instruction
- func MapArrIndex(mapGet func(m interface{}, k interface{}) (v interface{}), numFields int) common.Instruction
- func MapDelete(keyType *common.DataType) (mapSet func(m interface{}, k interface{}))
- func MapGet(keyType *common.DataType) (mapGet func(m interface{}, k interface{}) (v interface{}))
- func MapGetPtr(keyType *common.DataType) (mapSet func(m interface{}, k interface{}) (v *interface{}))
- func MapIndex(mapGet func(m interface{}, k interface{}) (v interface{})) common.Instruction
- func MapIndexLhs(constructor common.Constructor, ...) common.Instruction
- func MapSet(keyType *common.DataType) (mapSet func(m interface{}, k interface{}, v interface{}))
- func MessageGet(m interface{}, k string) interface{}
- func MessageGetPtr(m interface{}, k string) *interface{}
- func MessageReset(m interface{}, k string)
- func MessageSet(m interface{}, k string, v interface{})
- func MustGetMap32Field(m interface{}, k interface{}) *interface{}
- func MustGetMap64Field(m interface{}, k interface{}) *interface{}
- func MustGetMapBoolField(m interface{}, k interface{}) *interface{}
- func MustGetMapIFaceField(m interface{}, k interface{}) *interface{}
- func MustGetMapStrField(m interface{}, k interface{}) *interface{}
- func Or(rhsLen int) common.Instruction
- func ProgramEnding() common.Instruction
- func PushBack() common.Instruction
- func PushConstantToStack(data interface{}) common.Instruction
- func PushFront() common.Instruction
- func PushLambda(lambda common.Instruction) common.Instruction
- func PushLambdaWithCapture(rawFunc common.Instruction, capturedVariables []*common.Symbol, ...) common.Instruction
- func RightUnaryOp(op string, opType *common.DataType) common.Instruction
- func Selector(fieldName string) common.Instruction
- func SelectorEnum(fieldName string) common.Instruction
- func SelectorLhs(constructor common.Constructor, fieldName string, oneOfs []string) common.Instruction
- func SetMap32Field(m interface{}, k interface{}, v interface{})
- func SetMap64Field(m interface{}, k interface{}, v interface{})
- func SetMapBoolField(m interface{}, k interface{}, v interface{})
- func SetMapIFaceField(m interface{}, k interface{}, v interface{})
- func SetMapStrField(m interface{}, k interface{}, v interface{})
- func SliceArrIndex(numIndex int) common.Instruction
- func SliceFilter(filter common.Instruction, boolConvertFunc TypeConvertFuncBool) common.Instruction
- func SliceIndex() common.Instruction
- func SliceIndexLhs() common.Instruction
- func StackOffsetToStackPtr(spOffset int) common.Instruction
- func StackPopN(n int) common.Instruction
- func StackReturn() common.Instruction
- func StackReturnN(n int) common.Instruction
- func StackReturnVoid() common.Instruction
- func StringArrIndex() common.Instruction
- func StringIndex() common.Instruction
- func TakePtr() common.Instruction
- func TypeConvert(from *common.DataType, to *common.DataType) common.Instruction
- type EmptyFace
- type LengthFunc
- type TypeConvertFunc32f
- type TypeConvertFunc32i
- type TypeConvertFunc32u
- type TypeConvertFunc64f
- type TypeConvertFunc64i
- type TypeConvertFunc64u
- type TypeConvertFuncBool
- type TypeConvertFuncBytes
- type TypeConvertFuncMap
- type TypeConvertFuncMessage
- type TypeConvertFuncObject
- type TypeConvertFuncSlice
- type TypeConvertFuncStr
Constants ¶
This section is empty.
Variables ¶
View Source
var NilArbitrary interface{} = nil
View Source
var NilBool interface{} = false
View Source
var NilBytes interface{} = make([]byte, 0)
View Source
var NilFloat32 interface{} = float32(0)
View Source
var NilFloat64 interface{} = float64(0)
View Source
var NilInt32 interface{} = int32(0)
View Source
var NilInt64 interface{} = int64(0)
View Source
var NilSlice interface{} = make([]interface{}, 0)
View Source
var NilString interface{} = ""
View Source
var NilUInt32 interface{} = uint32(0)
View Source
var NilUInt64 interface{} = uint64(0)
Functions ¶
func And ¶
func And(rhsLen int) common.Instruction
func ArrIndex ¶
func ArrIndex() common.Instruction
func ChanRecv ¶
func ChanRecv(nonBlock bool) common.Instruction
func ChanSend ¶
func ChanSend(nonBlock bool) common.Instruction
func ConnectInstructions ¶
func ConnectInstructions(instructions []common.Instruction) common.Instruction
func Construct ¶
func Construct(constructor common.Constructor, numParam int) common.Instruction
func DelMap32Field ¶
func DelMap32Field(m interface{}, k interface{})
func DelMap64Field ¶
func DelMap64Field(m interface{}, k interface{})
func DelMapBoolField ¶
func DelMapBoolField(m interface{}, k interface{})
func DelMapIFaceField ¶
func DelMapIFaceField(m interface{}, k interface{})
func DelMapStrField ¶
func DelMapStrField(m interface{}, k interface{})
func DeleteMapKey ¶
func DeleteMapKey(mapDelFunc func(m interface{}, k interface{})) common.Instruction
func DeleteMessageField ¶
func DeleteMessageField() common.Instruction
func EnumString ¶
func EnumString(rEnum map[int32]string) common.Instruction
func FetchSymbol ¶
func FetchSymbolLhs ¶
func FunctionAssign ¶
func FunctionAssign(convert []common.Instruction) []common.Instruction
func GetAppendReturnPlace ¶
func GetAppendReturnPlace(num int) common.Instruction
func GetDynamicCallFunc ¶
func GetDynamicCallFunc(lenIn int) common.Instruction
func GetMap32Field ¶
func GetMap32Field(m interface{}, k interface{}) interface{}
func GetMap64Field ¶
func GetMap64Field(m interface{}, k interface{}) interface{}
func GetMapBoolField ¶
func GetMapBoolField(m interface{}, k interface{}) interface{}
func GetMapIFaceField ¶
func GetMapIFaceField(m interface{}, k interface{}) interface{}
func GetMapStrField ¶
func GetMapStrField(m interface{}, k interface{}) interface{}
func GetSliceField ¶
func GetSliceField(s interface{}, i int64) *interface{}
func GetStaticCallFunc ¶
func GetStaticCallFunc(funcPtr *common.Instruction, lenIn int) common.Instruction
func GetTailArray ¶
func GetTailArray(num int) common.Instruction
func GlobalSymbolAssign ¶
func GlobalSymbolAssign(sym *common.Symbol) common.Instruction
func Indirect ¶
func Indirect() common.Instruction
func InitializeMap ¶
func InitializeMap(constructor common.Constructor, mapSet func(m interface{}, k interface{}, v interface{}), num int) common.Instruction
func InitializeMessage ¶
func InitializeMessage(keys []string, num int) common.Instruction
func InitializeSlice ¶
func InitializeSlice(num int) common.Instruction
func LeftUnaryOp ¶
func LeftUnaryOp(op string, opType *common.DataType) common.Instruction
func Len ¶
func Len(lengthFunc LengthFunc) common.Instruction
func LocalSymbolNil ¶
func LocalSymbolNil() common.Instruction
func MapArrIndex ¶
func MapArrIndex(mapGet func(m interface{}, k interface{}) (v interface{}), numFields int) common.Instruction
func MapIndex ¶
func MapIndex(mapGet func(m interface{}, k interface{}) (v interface{})) common.Instruction
func MapIndexLhs ¶
func MapIndexLhs(constructor common.Constructor, mapMustGet func(m interface{}, k interface{}) (v *interface{})) common.Instruction
func MessageGet ¶
func MessageGet(m interface{}, k string) interface{}
func MessageGetPtr ¶
func MessageGetPtr(m interface{}, k string) *interface{}
func MessageReset ¶
func MessageReset(m interface{}, k string)
func MessageSet ¶
func MessageSet(m interface{}, k string, v interface{})
func MustGetMap32Field ¶
func MustGetMap32Field(m interface{}, k interface{}) *interface{}
func MustGetMap64Field ¶
func MustGetMap64Field(m interface{}, k interface{}) *interface{}
func MustGetMapBoolField ¶
func MustGetMapBoolField(m interface{}, k interface{}) *interface{}
func MustGetMapIFaceField ¶
func MustGetMapIFaceField(m interface{}, k interface{}) *interface{}
func MustGetMapStrField ¶
func MustGetMapStrField(m interface{}, k interface{}) *interface{}
func Or ¶
func Or(rhsLen int) common.Instruction
func ProgramEnding ¶
func ProgramEnding() common.Instruction
func PushBack ¶
func PushBack() common.Instruction
func PushConstantToStack ¶
func PushConstantToStack(data interface{}) common.Instruction
func PushFront ¶
func PushFront() common.Instruction
func PushLambda ¶
func PushLambda(lambda common.Instruction) common.Instruction
func PushLambdaWithCapture ¶
func PushLambdaWithCapture(rawFunc common.Instruction, capturedVariables []*common.Symbol, closureVariable *common.Symbol) common.Instruction
func RightUnaryOp ¶
func RightUnaryOp(op string, opType *common.DataType) common.Instruction
func Selector ¶
func Selector(fieldName string) common.Instruction
func SelectorEnum ¶
func SelectorEnum(fieldName string) common.Instruction
func SelectorLhs ¶
func SelectorLhs(constructor common.Constructor, fieldName string, oneOfs []string) common.Instruction
func SetMap32Field ¶
func SetMap32Field(m interface{}, k interface{}, v interface{})
func SetMap64Field ¶
func SetMap64Field(m interface{}, k interface{}, v interface{})
func SetMapBoolField ¶
func SetMapBoolField(m interface{}, k interface{}, v interface{})
func SetMapIFaceField ¶
func SetMapIFaceField(m interface{}, k interface{}, v interface{})
func SetMapStrField ¶
func SetMapStrField(m interface{}, k interface{}, v interface{})
func SliceArrIndex ¶
func SliceArrIndex(numIndex int) common.Instruction
func SliceFilter ¶
func SliceFilter(filter common.Instruction, boolConvertFunc TypeConvertFuncBool) common.Instruction
func SliceIndex ¶
func SliceIndex() common.Instruction
func SliceIndexLhs ¶
func SliceIndexLhs() common.Instruction
func StackOffsetToStackPtr ¶
func StackOffsetToStackPtr(spOffset int) common.Instruction
func StackPopN ¶
func StackPopN(n int) common.Instruction
func StackReturn ¶
func StackReturn() common.Instruction
func StackReturnN ¶
func StackReturnN(n int) common.Instruction
func StackReturnVoid ¶
func StackReturnVoid() common.Instruction
func StringArrIndex ¶
func StringArrIndex() common.Instruction
func StringIndex ¶
func StringIndex() common.Instruction
func TakePtr ¶
func TakePtr() common.Instruction
func TypeConvert ¶
Types ¶
type LengthFunc ¶
type LengthFunc func(from interface{}) int64
func BytesLen ¶
func BytesLen() LengthFunc
func GetLengthFunc ¶
func GetLengthFunc(from *common.DataType) LengthFunc
func MapLen ¶
func MapLen() LengthFunc
func SliceLen ¶
func SliceLen() LengthFunc
func StringLen ¶
func StringLen() LengthFunc
type TypeConvertFunc32f ¶
type TypeConvertFunc32f func(from interface{}) float32
func GetConvertFunc32f ¶
func GetConvertFunc32f(from *common.DataType) (TypeConvertFunc32f, error)
type TypeConvertFunc32i ¶
type TypeConvertFunc32i func(from interface{}) int32
func GetConvertFunc32i ¶
func GetConvertFunc32i(from *common.DataType) (TypeConvertFunc32i, error)
type TypeConvertFunc32u ¶
type TypeConvertFunc32u func(from interface{}) uint32
func GetConvertFunc32u ¶
func GetConvertFunc32u(from *common.DataType) (TypeConvertFunc32u, error)
type TypeConvertFunc64f ¶
type TypeConvertFunc64f func(from interface{}) float64
func GetConvertFunc64f ¶
func GetConvertFunc64f(from *common.DataType) (TypeConvertFunc64f, error)
type TypeConvertFunc64i ¶
type TypeConvertFunc64i func(from interface{}) int64
func GetConvertFunc64i ¶
func GetConvertFunc64i(from *common.DataType) (TypeConvertFunc64i, error)
type TypeConvertFunc64u ¶
type TypeConvertFunc64u func(from interface{}) uint64
func GetConvertFunc64u ¶
func GetConvertFunc64u(from *common.DataType) (TypeConvertFunc64u, error)
type TypeConvertFuncBool ¶
type TypeConvertFuncBool func(from interface{}) bool
func GetConvertFuncBool ¶
func GetConvertFuncBool(from *common.DataType) (TypeConvertFuncBool, error)
type TypeConvertFuncBytes ¶
type TypeConvertFuncBytes func(from interface{}) []byte
func GetConvertFuncBytes ¶
func GetConvertFuncBytes(from *common.DataType) (TypeConvertFuncBytes, error)
type TypeConvertFuncMap ¶
type TypeConvertFuncMap func(from interface{}) interface{}
type TypeConvertFuncMessage ¶
type TypeConvertFuncMessage func(from interface{}) interface{}
type TypeConvertFuncObject ¶
type TypeConvertFuncObject func(from interface{}) interface{}
type TypeConvertFuncSlice ¶
type TypeConvertFuncSlice func(from interface{}) []interface{}
type TypeConvertFuncStr ¶
type TypeConvertFuncStr func(from interface{}) string
func GetConvertFuncStr ¶
func GetConvertFuncStr(from *common.DataType) (TypeConvertFuncStr, error)
Click to show internal directories.
Click to hide internal directories.