1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
|
[arg]
description = 'Command-line arguments of Lua Standalone.'
[assert]
description = 'Calls error if the value of its argument is false.'
[collectgarbage]
[[.enums]]
name = 'opt'
enum = '"collect"'
description = 'Performs a full garbage-collection cycle.'
``````````
name = 'opt'
enum = '"stop"'
description = 'Stops automatic execution.'
``````````
name = 'opt'
enum = '"restart"'
description = 'Restarts automatic execution.'
``````````
name = 'opt'
enum = '"count"'
description = 'Returns the total memory in Kbytes.'
``````````
name = 'opt'
enum = '"step"'
description = 'Performs a garbage-collection step.'
``````````
name = 'opt'
enum = '"setpause"'
description = 'Set pause.'
``````````
name = 'opt'
enum = '"setstepmul"'
description = 'Set step multiplier.'
``````````
name = 'opt'
enum = '"isrunning"'
description = 'Returns whether the collector is running.'
["collectgarbage Lua 5.4"]
[[.enums]]
name = 'opt'
enum = '"collect"'
description = 'Performs a full garbage-collection cycle.'
``````````
name = 'opt'
enum = '"stop"'
description = 'Stops automatic execution.'
``````````
name = 'opt'
enum = '"restart"'
description = 'Restarts automatic execution.'
``````````
name = 'opt'
enum = '"count"'
description = 'Returns the total memory in Kbytes.'
``````````
name = 'opt'
enum = '"step"'
description = 'Performs a garbage-collection step.'
``````````
name = 'opt'
enum = '"setpause"'
description = 'Set pause.'
``````````
name = 'opt'
enum = '"setstepmul"'
description = 'Set step multiplier.'
``````````
name = 'opt'
enum = '"incremental"'
description = 'Change the collector mode to incremental.'
``````````
name = 'opt'
enum = '"generational"'
description = 'Change the collector mode to generational.'
``````````
name = 'opt'
enum = '"isrunning"'
description = 'Returns whether the collector is running.'
[dofile]
description = 'Opens the named file and executes its contents as a Lua chunk.'
[error]
description = 'Terminates the last protected function called and returns message as the error object.'
[_G]
description = 'Holds the global environment.'
[getfenv]
description = 'Returns the current environment in use by the function. `f` can be a Lua function or a number that specifies the function at that stack level.'
[getmetatable]
description = 'Returns the metatable of the given object.'
[ipairs]
description = [[
----------------
```lua
for i, v in ipairs(t) do
body
end
```
]]
[load]
description = 'Loads a chunk.'
[[.enums]]
name = 'mode'
enum = '"b"'
description = 'Only binary chunks.'
``````````
name = 'mode'
enum = '"t"'
description = 'Only text chunks.'
``````````
name = 'mode'
enum = '"bt"'
description = 'Both binary and text.'
['load Lua 5.1']
description = 'Loads a chunk using function `func` to get its pieces. Each call to `func` must return a string that concatenates with previous results.'
[loadfile]
description = 'Loads a chunk from file.'
[[.enums]]
name = 'mode'
enum = '"b"'
description = 'Only binary chunks.'
``````````
name = 'mode'
enum = '"t"'
description = 'Only text chunks.'
``````````
name = 'mode'
enum = '"bt"'
description = 'Both binary and text.'
['loadfile Lua 5.1']
description = 'Loads a chunk from file `filename` or from the standard input, if no file name is given.'
[loadstring]
description = 'Loads a chunk from the given string.'
[module]
description = 'Creates a module'
[next]
description = 'Returns the next index of the table and its associated value.'
[pairs]
description = [[
----------------
```lua
for k, v in pairs(t) do
body
end
```
]]
[pcall]
description = 'Calls function with the given arguments in protected mode.'
[print]
description = 'Receives any number of arguments and prints their values to stdout.'
[rawequal]
description = 'Checks whether v1 is equal to v2, without invoking the `__eq` metamethod.'
[rawget]
description = 'Gets the real value of `table[index]`, without invoking the `__index` metamethod.'
[rawlen]
description = 'Returns the length of the object `v`, without invoking the `__len` metamethod.'
[rawset]
description = 'Sets the real value of `table[index]` to `value`, without invoking the `__newindex` metamethod.'
[select]
[[.enums]]
name = 'index'
enum = '"#"'
description = 'Returns the total number of extra arguments.'
``````````
name = 'index'
code = 'integer'
description = 'Returns all arguments after number `index`.'
[setfenv]
description = 'Sets the environment to be used by the given function. `f` can be a Lua function or a number that specifies the function at that stack level.'
[setmetatable]
description = 'Sets the metatable for the given table.'
[tonumber]
description = 'Tries to convert its argument to a number.'
[tostring]
description = 'Receives a value of any type and converts it to a string in a human-readable format.'
[type]
description = 'Returns the type of its only argument, coded as a string.'
["_VERSION Lua 5.1"]
description = 'Running Lua version.'
["_VERSION Lua 5.2"]
description = 'Running Lua version.'
["_VERSION Lua 5.3"]
description = 'Running Lua version.'
["_VERSION Lua 5.4"]
description = 'Running Lua version.'
[warn]
description = [[
Emits a warning with the given message.
A message in a call with `tocont` true should be
continued in another call to this function.
The default for `tocont` is false.
]]
[xpcall]
description = 'Calls function `f` with the given arguments in protected mode with a new message handler.'
['xpcall Lua 5.1']
description = 'Calls function `f` in protected mode with a new message handler.'
[require]
description = 'Loads the given module, returns any value returned by the given module(`true` when `nil`).'
["require Lua 5.4"]
description = 'Loads the given module, returns any value returned by the searcher(`true` when `nil`). Besides that value, also returns as a second result the loader data returned by the searcher, which indicates how `require` found the module. (For instance, if the module came from a file, this loader data is the file path.)'
[unpack]
description = [[
-------
```lua
return list[i], list[i+1], ···, list[j]
```
]]
|