Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Shopify/go-lua
/ functions
Functions
673 in github.com/Shopify/go-lua
⨍
Functions
673
◇
Types & classes
50
↓ 4 callers
Method
isNumeral
()
code.go:296
↓ 4 callers
Function
load
(l *State, t *testing.T, fileName string)
parser_test.go:12
↓ 4 callers
Function
newFrame
(l *State, ci *callInfo)
vm.go:955
↓ 4 callers
Method
numberError
()
scanner.go:83
↓ 4 callers
Function
opMode
(m opCode)
instructions.go:221
↓ 4 callers
Method
patchListHelper
(list, target, register, defaultTarget int)
code.go:470
↓ 4 callers
Method
readDigits
()
scanner.go:204
↓ 4 callers
Method
readString
()
undump.go:62
↓ 4 callers
Method
semanticError
(message string)
code.go:286
↓ 4 callers
Method
setUpValue
(i int, v value)
stack.go:21
↓ 4 callers
Function
testNoPanicString
Commented out to avoid a warning relating to the method not being used. Left here since it's useful for debugging. func traceString(t *testing.T, s st
vm_test.go:16
↓ 4 callers
Function
testString
(t *testing.T, s string)
vm_test.go:11
↓ 4 callers
Method
tokenToString
(t rune)
scanner.go:87
↓ 4 callers
Method
writeString
(s string)
dump.go:88
↓ 3 callers
Function
CheckStackWithMessage
(l *State, space int, message string)
auxiliary.go:394
↓ 3 callers
Method
Concat
Concat concatenates the n values at the top of the stack, pops them, and leaves the result at the top. If n is 1, the result is the single value on th
lua.go:1209
↓ 3 callers
Method
EncodeConstant
(r, constant int)
code.go:342
↓ 3 callers
Method
ExpressionToValue
(e exprDesc)
code.go:703
↓ 3 callers
Method
GoIfTrue
(e exprDesc)
code.go:787
↓ 3 callers
Method
Indexed
(t, k exprDesc)
code.go:839
↓ 3 callers
Method
IsTable
IsTable verifies that the value at index is a table. http://www.lua.org/manual/5.2/manual.html#lua_istable
lua.go:1496
↓ 3 callers
Function
MetaTableNamed
(l *State, name string)
auxiliary.go:260
↓ 3 callers
Method
Next
Next pops a key from the stack and pushes a key-value pair from the table at index, while the table has next elements. If there are no more elements,
lua.go:1191
↓ 3 callers
Method
NumberConstant
(n float64)
code.go:540
↓ 3 callers
Method
ProtectedCallWithContinuation
ProtectedCallWithContinuation behaves exactly like ProtectedCall, but allows the called function to yield. http://www.lua.org/manual/5.2/manual.html#
lua.go:389
↓ 3 callers
Method
PushThread
PushThread pushes the thread l onto the stack. It returns true if l is the main thread of its state. http://www.lua.org/manual/5.2/manual.html#lua_p
lua.go:977
↓ 3 callers
Method
RawEqual
RawEqual verifies that the values at index1 and index2 are primitively equal (that is, without calling their metamethods). http://www.lua.org/manual/
lua.go:735
↓ 3 callers
Method
ReturnNone
()
code.go:377
↓ 3 callers
Function
SetDebugHook
SetDebugHook sets the debugging hook function. f is the hook function. mask specifies on which events the hook will be called: it is formed by a bitw
debug.go:163
↓ 3 callers
Method
SetMultipleReturns
(e exprDesc)
code.go:378
↓ 3 callers
Method
StoreVariable
(v, e exprDesc)
code.go:734
↓ 3 callers
Method
ToUserData
ToUserData returns an interface{} of the userdata of the value at index. Otherwise, it returns nil. http://www.lua.org/manual/5.2/manual.html#lua_tou
lua.go:843
↓ 3 callers
Method
ToValue
ToValue convertes the value at index into a generic Go interface{}. The value can be a userdata, a table, a thread, a function, or Go string, bool or
lua.go:871
↓ 3 callers
Function
apiCheckStackIndex
(index int, v value)
lua.go:468
↓ 3 callers
Function
arith
(op Operator, v1, v2 float64)
types.go:228
↓ 3 callers
Function
asConstant
(r int)
instructions.go:128
↓ 3 callers
Method
at
(k value)
tables.go:101
↓ 3 callers
Function
bitOp
(l *State, init uint, f func(a, b uint) uint)
bit32.go:40
↓ 3 callers
Method
body
(isMethod bool, line int)
parser.go:533
↓ 3 callers
Method
callBinaryTagMethod
(p1, p2 value, event tm)
vm.go:120
↓ 3 callers
Method
callOrderTagMethod
(left, right value, event tm)
vm.go:131
↓ 3 callers
Method
check
(t rune)
scanner.go:529
↓ 3 callers
Method
checkCondition
(c bool, message string)
parser.go:17
↓ 3 callers
Method
checkMode
(mode, x string)
parser.go:666
↓ 3 callers
Method
checkNameAsExpression
()
parser.go:45
↓ 3 callers
Method
checkNext
(str string)
scanner.go:147
↓ 3 callers
Method
checkUpValue
(f, upValueCount int)
debug.go:406
↓ 3 callers
Method
clearCallStatus
(flag callStatus)
stack.go:141
↓ 3 callers
Method
conditionalJump
(op opCode, a, b, c int)
code.go:396
↓ 3 callers
Function
constantIndex
(r int)
instructions.go:127
↓ 3 callers
Method
constantName
(k int, pc pc)
types.go:184
↓ 3 callers
Method
encode
(i instruction)
code.go:306
↓ 3 callers
Method
escapeError
(c []rune, message string)
scanner.go:306
↓ 3 callers
Function
expectNext
(ci *callInfo, expected opCode)
vm.go:963
↓ 3 callers
Method
expectNext
(expected opCode)
vm.go:268
↓ 3 callers
Method
expressionToRegister
(e exprDesc, r int)
code.go:655
↓ 3 callers
Method
extendArray
(last int)
tables.go:39
↓ 3 callers
Method
fieldSelector
(e exprDesc)
parser.go:306
↓ 3 callers
Function
finishProtectedCall
(l *State, status bool)
base.go:52
↓ 3 callers
Method
fixJump
(pc, dest int)
code.go:401
↓ 3 callers
Method
freeRegister
(r int)
code.go:560
↓ 3 callers
Function
hookTable
(l *State)
debug.go:422
↓ 3 callers
Method
invalidateTagMethodCache
()
tables.go:16
↓ 3 callers
Function
ioFile
(l *State, name string)
io.go:41
↓ 3 callers
Method
jumpControl
(pc int)
code.go:435
↓ 3 callers
Method
lessOrEqual
(left, right value)
vm.go:153
↓ 3 callers
Method
lessThan
(left, right value)
vm.go:136
↓ 3 callers
Function
lines
(l *State, shouldClose bool)
io.go:163
↓ 3 callers
Function
mask1
creates a mask with 'n' 1 bits at position 'p'
instructions.go:131
↓ 3 callers
Function
mathBinaryOp
(f func(float64, float64) float64)
math.go:17
↓ 3 callers
Function
newFile
(l *State)
io.go:37
↓ 3 callers
Method
newFrame
()
vm.go:282
↓ 3 callers
Method
newLuaClosure
(p *prototype)
stack.go:211
↓ 3 callers
Function
newTableWithSize
(arraySize, hashSize int)
tables.go:19
↓ 3 callers
Method
objectLength
(v value)
vm.go:71
↓ 3 callers
Method
objectName
(reg int, lastPC pc)
types.go:144
↓ 3 callers
Method
postCall
(firstResult int)
stack.go:343
↓ 3 callers
Method
protectedCall
(f func(), oldTop, errorFunc int)
lua.go:1239
↓ 3 callers
Function
read
(l *State, f *os.File, argIndex int)
io.go:117
↓ 3 callers
Function
registerStdFile
(l *State, f *os.File, reg, name string)
io.go:300
↓ 3 callers
Method
setC
(arg int)
instructions.go:160
↓ 3 callers
Method
setList
(base, elementCount, storeCount int)
code.go:961
↓ 3 callers
Function
shift
(l *State, r uint, i int)
bit32.go:12
↓ 3 callers
Method
skipSeparator
()
scanner.go:155
↓ 3 callers
Method
statement
()
parser.go:604
↓ 3 callers
Method
suffixedExpression
()
parser.go:149
↓ 3 callers
Function
threadArg
(l *State)
debug.go:415
↓ 3 callers
Method
toString
(index int)
types.go:291
↓ 3 callers
Method
traceExecution
()
vm.go:219
↓ 3 callers
Method
upValueName
(index int)
types.go:106
↓ 3 callers
Method
writeBool
(b bool)
dump.go:39
↓ 2 callers
Function
BaseOpen
BaseOpen opens the basic library. Usually passed to Require.
base.go:322
↓ 2 callers
Method
CallWithContinuation
CallWithContinuation is exactly like Call, but allows the called function to yield. http://www.lua.org/manual/5.2/manual.html#lua_callk
lua.go:334
↓ 2 callers
Method
Copy
Copy moves the element at the index from into the valid index to without shifting any element (therefore replacing the value at that position). http:
lua.go:1374
↓ 2 callers
Method
Dump
Dump dumps a function as a binary chunk. It receives a Lua function on the top of the stack and produces a binary chunk that, if loaded again, results
lua.go:445
↓ 2 callers
Method
ExpressionToAnyRegisterOrUpValue
(e exprDesc)
code.go:696
↓ 2 callers
Method
FindGotos
(label int)
code.go:211
↓ 2 callers
Method
Global
Global pushes onto the stack the value of the global name. http://www.lua.org/manual/5.2/manual.html#lua_getglobal
lua.go:985
↓ 2 callers
Method
GoIfFalse
(e exprDesc)
code.go:803
↓ 2 callers
Method
IsFunction
IsFunction verifies that the value at index is a function, either Go or Lua function. http://www.lua.org/manual/5.2/manual.html#lua_isfunction
lua.go:1491
← previous
next →
201–300 of 673, ranked by callers