Documentation ¶
Index ¶
- Constants
- Variables
- func Depend_canUseAsync() bool
- func Depend_canUseChannel() bool
- func Depend_existFile(path string) bool
- func Depend_getLuaVersion() string
- func Depend_getStackTrace() string
- func Depend_setup(callback Depend_UpdateVer)
- func LnsPreload(vm *C.lua_State) C.int
- func Lns_DependLuaOnLns_init()
- func Lns_Depend_init()
- func Lns_InitMod()
- func Lns_InitModOnce()
- func Lns_IsNil(val LnsAny) bool
- func Lns_NilAccCall0(self *LnsEnv, call func()) bool
- func Lns_NilAccCall1(self *LnsEnv, call func() LnsAny) bool
- func Lns_NilAccCall2(self *LnsEnv, call func() (LnsAny, LnsAny)) bool
- func Lns_NilAccCall3(self *LnsEnv, call func() (LnsAny, LnsAny, LnsAny)) bool
- func Lns_NilAccFinCall2(ret LnsAny) (LnsAny, LnsAny)
- func Lns_NilAccFinCall3(ret LnsAny) (LnsAny, LnsAny, LnsAny)
- func Lns_Str_init()
- func Lns_ToBoolSub(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny)
- func Lns_ToIntSub(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny)
- func Lns_ToListSub(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny)
- func Lns_ToLnsMapSub(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny)
- func Lns_ToRealSub(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny)
- func Lns_ToSetSub(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny)
- func Lns_ToStemSub(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny)
- func Lns_ToStrSub(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny)
- func Lns_ToString(val LnsAny) string
- func Lns_initPreload(vm *C.lua_State)
- func Lns_io_open(path string, mode LnsAny) (LnsAny, LnsAny)
- func Lns_isCondTrue(stem LnsAny) bool
- func Lns_op_not(stem LnsAny) bool
- func Lns_print(multi []LnsAny)
- func Lns_runLuaScript(script string)
- func Lns_type(val LnsAny) string
- func Str_endsWith(txt, ptn string) bool
- func Str_isValidStrBuilder() bool
- func Str_startsWith(txt, ptn string) bool
- type Depend_UpdateVer
- type LnsAlgeVal
- type LnsAny
- func DependLuaOnLns_runLuaOnLns(luaCode string) (LnsAny, string)
- func Depend_getFileLastModifiedTime(path string) LnsAny
- func Depend_profile(validTest bool, work LnsForm, path string) LnsAny
- func Depend_searchpath(mod string, pathPattern string) LnsAny
- func Lns_2DDD(multi ...LnsAny) []LnsAny
- func Lns_FromStemGetAt(obj LnsAny, index LnsAny, nilAccess bool) LnsAny
- func Lns_ToCollection(val LnsAny) LnsAny
- func Lns_car(multi ...LnsAny) LnsAny
- func Lns_cast2LnsInt(val LnsAny) LnsAny
- func Lns_cast2LnsReal(val LnsAny) LnsAny
- func Lns_cast2bool(val LnsAny) LnsAny
- func Lns_cast2string(val LnsAny) LnsAny
- func Lns_getFromMulti(multi []LnsAny, index LnsInt) LnsAny
- func Lns_require(val string) LnsAny
- func Lns_tonumber(val string, base LnsAny) LnsAny
- func Lns_unwrap(val LnsAny) LnsAny
- func Lns_unwrapDefault(val, def LnsAny) LnsAny
- func Str_Builder2Stem(obj LnsAny) LnsAny
- func Str_BuilderDownCastF(multi ...LnsAny) LnsAny
- type LnsComp
- type LnsEnv
- type LnsForm
- type LnsInt
- type LnsList
- func (lnsList *LnsList) GetAt(index int) LnsAny
- func (lnsList *LnsList) Insert(val LnsAny)
- func (self *LnsList) Len() int
- func (self *LnsList) Less(idx1, idx2 int) bool
- func (lnsList *LnsList) Remove(index LnsAny) LnsAny
- func (lnsList *LnsList) Set(index int, val LnsAny)
- func (self *LnsList) Sort(kind int, comp LnsAny)
- func (self *LnsList) Swap(idx1, idx2 int)
- func (self *LnsList) ToCollection() LnsAny
- func (LnsList *LnsList) ToLuaCode(conv *StemToLuaConv)
- func (lnsList *LnsList) Unpack() []LnsAny
- type LnsMap
- func (self *LnsMap) Correct() *LnsMap
- func (self *LnsMap) CreateKeyListInt() *LnsList
- func (self *LnsMap) CreateKeyListReal() *LnsList
- func (self *LnsMap) CreateKeyListStem() *LnsList
- func (self *LnsMap) CreateKeyListStr() *LnsList
- func (self *LnsMap) Set(key, val LnsAny)
- func (self *LnsMap) ToCollection() LnsAny
- func (LnsMap *LnsMap) ToLuaCode(conv *StemToLuaConv)
- type LnsReader
- type LnsReal
- type LnsSet
- func (self *LnsSet) Add(val LnsAny)
- func (self *LnsSet) And(set *LnsSet) *LnsSet
- func (self *LnsSet) Clone() *LnsSet
- func (self *LnsSet) CreateKeyListInt() *LnsList
- func (self *LnsSet) CreateKeyListReal() *LnsList
- func (self *LnsSet) CreateKeyListStem() *LnsList
- func (self *LnsSet) CreateKeyListStr() *LnsList
- func (self *LnsSet) Del(val LnsAny)
- func (self *LnsSet) Has(val LnsAny) bool
- func (self *LnsSet) Len() LnsInt
- func (self *LnsSet) Or(set *LnsSet) *LnsSet
- func (self *LnsSet) Sub(set *LnsSet) *LnsSet
- func (self *LnsSet) ToCollection() LnsAny
- type LnsThread
- type LnsThreadMtd
- type Lns_FileObj_t
- type Lns_ToCollectionIF
- type Lns_ToMap
- type Lns_ToObj
- type Lns_ToObjParam
- type Lns__pipe
- type Lns_iStream
- type Lns_luaStream
- type Lns_luaVM
- func (luaVM *Lns_luaVM) CallStatic(packName string, funcname string, args []LnsAny) []LnsAny
- func (luaVM *Lns_luaVM) ExpandLuavalMap(stem LnsAny) LnsAny
- func (luaVM *Lns_luaVM) GetEmptyMap() *Lns_luaValue
- func (luaVM *Lns_luaVM) GetPackagePath() string
- func (luaVM *Lns_luaVM) IO_popen(path string) LnsAny
- func (luaVM *Lns_luaVM) Load(txt string, opt LnsAny) (LnsAny, LnsAny)
- func (luaVM *Lns_luaVM) Loadfile(path string) (LnsAny, LnsAny)
- func (luaVM *Lns_luaVM) Math_random(mVal LnsAny, nVal LnsAny) LnsReal
- func (luaVM *Lns_luaVM) Math_randomseed(seed LnsInt)
- func (luaVM *Lns_luaVM) NewStemToLuaConv() *StemToLuaConv
- func (luaVM *Lns_luaVM) OS_clock() LnsReal
- func (luaVM *Lns_luaVM) OS_date(format LnsAny, time LnsAny) LnsAny
- func (luaVM *Lns_luaVM) OS_difftime(tm1 LnsAny, tm2 LnsAny) LnsInt
- func (luaVM *Lns_luaVM) OS_exit(code LnsAny)
- func (luaVM *Lns_luaVM) OS_remove(path string) (LnsAny, LnsAny)
- func (luaVM *Lns_luaVM) OS_rename(src string, dst string) (LnsAny, LnsAny)
- func (luaVM *Lns_luaVM) OS_time(tbl LnsAny) LnsAny
- func (luaVM *Lns_luaVM) Package_searchpath(name string, path string) LnsAny
- func (luaVM *Lns_luaVM) RunCode(code string) (bool, []LnsAny, LnsAny)
- func (luaVM *Lns_luaVM) RunLoadedfunc(loaded *Lns_luaValue, args []LnsAny) []LnsAny
- func (luaVM *Lns_luaVM) SortMapKeyList(mapObj *Lns_luaValue) *Lns_luaValue
- func (luaVM *Lns_luaVM) String_byte(txt string, from LnsAny, to LnsAny) []LnsAny
- func (luaVM *Lns_luaVM) String_dump(form *Lns_luaValue, flag LnsAny) string
- func (luaVM *Lns_luaVM) String_find(txt string, src string, index LnsAny, plain LnsAny) []LnsAny
- func (luaVM *Lns_luaVM) String_format(format string, ddd []LnsAny) string
- func (luaVM *Lns_luaVM) String_gmatch(txt string, pat string) (LnsAny, LnsAny, LnsAny)
- func (luaVM *Lns_luaVM) String_gsub(txt string, src string, dst string) (string, LnsInt)
- func (luaVM *Lns_luaVM) String_lower(txt string) string
- func (luaVM *Lns_luaVM) String_rep(txt string, num LnsInt) string
- func (luaVM *Lns_luaVM) String_reverse(txt string) string
- func (luaVM *Lns_luaVM) String_sub(txt string, from LnsInt, to LnsAny) string
- func (luaVM *Lns_luaVM) String_upper(txt string) string
- type Lns_luaValue
- func (luaValue *Lns_luaValue) Call(argList []LnsAny) []LnsAny
- func (obj *Lns_luaValue) CallMethod(funcname string, args []LnsAny) []LnsAny
- func (luaValue *Lns_luaValue) Get1stFromMap() (LnsAny, LnsAny)
- func (obj *Lns_luaValue) GetAt(index LnsAny) LnsAny
- func (obj *Lns_luaValue) Len() LnsInt
- func (luaValue *Lns_luaValue) NextFromMap(prev LnsAny) (LnsAny, LnsAny)
- type Lns_luaValueCore
- type Lns_luaValueCoreList
- type Lns_oStream
- type Lns_pipeMtd
- type Lns_stdin_t
- type Lns_stdout_t
- type RegexpCache
- type StemToLuaConv
- type Str_Builder
- type Str_BuilderDownCast
- type Str_BuilderMtd
Constants ¶
View Source
const ( LnsItemKindUnknown = 0 LnsItemKindStem = 1 LnsItemKindInt = 2 LnsItemKindReal = 3 LnsItemKindStr = 4 )
Variables ¶
View Source
var DependLuaOnLns_runLuaOnLnsFunc func(luaCode string) (LnsAny, string) = nil
View Source
var LnsNone interface{} = nil
View Source
var Lns_package_path string
Functions ¶
func Depend_canUseAsync ¶
func Depend_canUseAsync() bool
func Depend_canUseChannel ¶
func Depend_canUseChannel() bool
func Depend_existFile ¶
func Depend_getLuaVersion ¶
func Depend_getLuaVersion() string
func Depend_getStackTrace ¶
func Depend_getStackTrace() string
func Depend_setup ¶
func Depend_setup(callback Depend_UpdateVer)
func LnsPreload ¶
lua の package.preload に登録される関数。 lua の第一引数にロードするモジュール名が渡される。 戻り値として、ロード後の値を push する。
func Lns_DependLuaOnLns_init ¶
func Lns_DependLuaOnLns_init()
func Lns_Depend_init ¶
func Lns_Depend_init()
func Lns_InitMod ¶
func Lns_InitMod()
* 各モジュールを初期化する際に実行する関数。
import エラーを回避するため、 敢てランタイムの関数のどれか一つを呼んでいる。
実際の初期化関数は、 Lns_InitModOnce() で行なう。
func Lns_NilAccCall0 ¶
func Lns_NilAccCall1 ¶
func Lns_NilAccCall3 ¶
func Lns_NilAccFinCall2 ¶
func Lns_Str_init ¶
func Lns_Str_init()
func Lns_ToBoolSub ¶
func Lns_ToIntSub ¶
func Lns_ToListSub ¶
func Lns_ToLnsMapSub ¶
func Lns_ToRealSub ¶
func Lns_ToSetSub ¶
func Lns_ToStemSub ¶
func Lns_ToStrSub ¶
func Lns_ToString ¶
func Lns_initPreload ¶
func Lns_isCondTrue ¶
func Lns_op_not ¶
func Lns_runLuaScript ¶
func Lns_runLuaScript(script string)
func Str_endsWith ¶
func Str_isValidStrBuilder ¶
func Str_isValidStrBuilder() bool
func Str_startsWith ¶
Types ¶
type Depend_UpdateVer ¶
type Depend_UpdateVer func(ver LnsInt)
type LnsAlgeVal ¶
type LnsAlgeVal interface {
GetTxt() string
}
type LnsAny ¶
type LnsAny = interface{}
func Depend_getFileLastModifiedTime ¶
* path の最終更新日時を取得する。
@param path ファイルパス @return 1970/1/1 0:0:0 からの秒数。 取得失敗した場合は nil。
func Depend_searchpath ¶
func Lns_ToCollection ¶
func Lns_cast2LnsInt ¶
func Lns_cast2LnsReal ¶
func Lns_cast2bool ¶
func Lns_cast2string ¶
func Lns_getFromMulti ¶
func Lns_require ¶
func Lns_tonumber ¶
func Lns_unwrap ¶
func Lns_unwrapDefault ¶
func Str_Builder2Stem ¶
func Str_BuilderDownCastF ¶
type LnsEnv ¶
type LnsEnv struct { LuaVM *Lns_luaVM // contains filtered or unexported fields }
func Lns_GetEnv ¶
func Lns_GetEnv() *LnsEnv
func (*LnsEnv) NilAccPush ¶
func (*LnsEnv) SetStackVal ¶
*
- 値 pVal をスタックの top にセットし、値 pVal の条件判定結果を返す *
- スタックに lns_ddd_t は詰めない。
- 呼び出し側で lns_ddd_t の先頭要素を指定すること。 *
- @param pVal スタックに詰む値
- @return pVal の条件判定結果。 lns_isCondTrue()。
type LnsList ¶
type LnsList struct { Items []LnsAny // contains filtered or unexported fields }
func NewLnsList ¶
func Str_getLineList ¶
func (*LnsList) ToCollection ¶
func (*LnsList) ToLuaCode ¶
func (LnsList *LnsList) ToLuaCode(conv *StemToLuaConv)
type LnsMap ¶
func (*LnsMap) CreateKeyListInt ¶
func (*LnsMap) CreateKeyListReal ¶
func (*LnsMap) CreateKeyListStem ¶
func (*LnsMap) CreateKeyListStr ¶
func (*LnsMap) ToCollection ¶
func (*LnsMap) ToLuaCode ¶
func (LnsMap *LnsMap) ToLuaCode(conv *StemToLuaConv)
type LnsReader ¶
type LnsReader struct {
// contains filtered or unexported fields
}
func NewLnsReader ¶
type LnsSet ¶
func (*LnsSet) CreateKeyListInt ¶
func (*LnsSet) CreateKeyListReal ¶
func (*LnsSet) CreateKeyListStem ¶
func (*LnsSet) CreateKeyListStr ¶
func (*LnsSet) ToCollection ¶
type LnsThread ¶
type LnsThread struct { LnsEnv *LnsEnv FP LnsThreadMtd }
func (*LnsThread) InitLnsThread ¶
func (self *LnsThread) InitLnsThread()
type LnsThreadMtd ¶
type LnsThreadMtd interface {
Loop()
}
type Lns_FileObj_t ¶
type Lns_FileObj_t struct { FP Lns_luaStream // contains filtered or unexported fields }
func (*Lns_FileObj_t) Close ¶
func (self *Lns_FileObj_t) Close()
func (*Lns_FileObj_t) Flush ¶
func (self *Lns_FileObj_t) Flush()
func (*Lns_FileObj_t) Read ¶
func (self *Lns_FileObj_t) Read(arg LnsAny) LnsAny
type Lns_ToCollectionIF ¶
type Lns_ToCollectionIF interface {
ToCollection() LnsAny
}
type Lns_ToObjParam ¶
type Lns_ToObjParam struct { Func func(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny) Nilable bool Child []Lns_ToObjParam }
type Lns__pipe ¶
type Lns__pipe struct { FP Lns_pipeMtd // contains filtered or unexported fields }
func NewLnspipe ¶
type Lns_iStream ¶
type Lns_luaStream ¶
type Lns_luaVM ¶
type Lns_luaVM struct {
// contains filtered or unexported fields
}
func (*Lns_luaVM) CallStatic ¶
* Lua の関数を実行する。
@param packName Lua のパッケージ名。 string.format() を実行する場合 "string"。 @param funcname 実行する関数名。string.format() を実行する場合、 "format"。 @return []LnsAny 実行結果。
func (*Lns_luaVM) ExpandLuavalMap ¶
func (*Lns_luaVM) GetEmptyMap ¶
func (luaVM *Lns_luaVM) GetEmptyMap() *Lns_luaValue
func (*Lns_luaVM) GetPackagePath ¶
func (*Lns_luaVM) Math_random ¶
func (*Lns_luaVM) Math_randomseed ¶
func (*Lns_luaVM) NewStemToLuaConv ¶
func (luaVM *Lns_luaVM) NewStemToLuaConv() *StemToLuaConv
func (*Lns_luaVM) Package_searchpath ¶
func (*Lns_luaVM) RunLoadedfunc ¶
func (luaVM *Lns_luaVM) RunLoadedfunc(loaded *Lns_luaValue, args []LnsAny) []LnsAny
func (*Lns_luaVM) SortMapKeyList ¶
func (luaVM *Lns_luaVM) SortMapKeyList(mapObj *Lns_luaValue) *Lns_luaValue
func (*Lns_luaVM) String_byte ¶
func (*Lns_luaVM) String_dump ¶
func (luaVM *Lns_luaVM) String_dump(form *Lns_luaValue, flag LnsAny) string
func (*Lns_luaVM) String_find ¶
func (*Lns_luaVM) String_format ¶
func (*Lns_luaVM) String_gmatch ¶
func (*Lns_luaVM) String_gsub ¶
func (*Lns_luaVM) String_lower ¶
func (*Lns_luaVM) String_reverse ¶
func (*Lns_luaVM) String_sub ¶
func (*Lns_luaVM) String_upper ¶
type Lns_luaValue ¶
type Lns_luaValue struct {
// contains filtered or unexported fields
}
func Depend_getLoadedMod ¶
func Depend_getLoadedMod() *Lns_luaValue
func (*Lns_luaValue) Call ¶
func (luaValue *Lns_luaValue) Call(argList []LnsAny) []LnsAny
func (*Lns_luaValue) CallMethod ¶
func (obj *Lns_luaValue) CallMethod(funcname string, args []LnsAny) []LnsAny
func (*Lns_luaValue) Get1stFromMap ¶
func (luaValue *Lns_luaValue) Get1stFromMap() (LnsAny, LnsAny)
func (*Lns_luaValue) GetAt ¶
func (obj *Lns_luaValue) GetAt(index LnsAny) LnsAny
func (*Lns_luaValue) Len ¶
func (obj *Lns_luaValue) Len() LnsInt
func (*Lns_luaValue) NextFromMap ¶
func (luaValue *Lns_luaValue) NextFromMap(prev LnsAny) (LnsAny, LnsAny)
type Lns_luaValueCore ¶
type Lns_luaValueCore struct {
// contains filtered or unexported fields
}
type Lns_luaValueCoreList ¶
type Lns_luaValueCoreList struct {
// contains filtered or unexported fields
}
type Lns_oStream ¶
type Lns_pipeMtd ¶
type Lns_stdin_t ¶
type Lns_stdin_t struct { FP Lns_iStream // contains filtered or unexported fields }
var Lns_io_stdin *Lns_stdin_t
func (*Lns_stdin_t) Close ¶
func (self *Lns_stdin_t) Close()
func (*Lns_stdin_t) Read ¶
func (self *Lns_stdin_t) Read(arg LnsAny) LnsAny
type Lns_stdout_t ¶
type Lns_stdout_t struct {
FP Lns_oStream
}
var Lns_io_stderr *Lns_stdout_t
var Lns_io_stdout *Lns_stdout_t
func (*Lns_stdout_t) Close ¶
func (self *Lns_stdout_t) Close()
func (*Lns_stdout_t) Flush ¶
func (self *Lns_stdout_t) Flush()
type RegexpCache ¶
type RegexpCache struct {
// contains filtered or unexported fields
}
type StemToLuaConv ¶
type StemToLuaConv struct {
// contains filtered or unexported fields
}
type Str_Builder ¶
type Str_Builder struct { FP Str_BuilderMtd // contains filtered or unexported fields }
func NewStr_Builder ¶
func NewStr_Builder() *Str_Builder
func (*Str_Builder) Add ¶
func (self *Str_Builder) Add(val string)
106: decl @lune.@base.@Util.memStream.write
func (*Str_Builder) Clear ¶
func (self *Str_Builder) Clear()
func (*Str_Builder) Get_txt ¶
func (self *Str_Builder) Get_txt() string
func (*Str_Builder) InitStr_Builder ¶
func (self *Str_Builder) InitStr_Builder()
func (*Str_Builder) Len ¶
func (self *Str_Builder) Len() LnsInt
func (*Str_Builder) ToStr_Builder ¶
func (obj *Str_Builder) ToStr_Builder() *Str_Builder
type Str_BuilderDownCast ¶
type Str_BuilderDownCast interface {
Str_ToBuilder() *Str_Builder
}
type Str_BuilderMtd ¶
==== Builder
Click to show internal directories.
Click to hide internal directories.