Add the lua adapter to gadgets.py and installer.py, update the README.md file and create basic tests using lua, luajit and love.
25 lines
415 B
Lua
25 lines
415 B
Lua
if pcall(require, 'lldebugger') then
|
|
require('lldebugger').start()
|
|
end
|
|
|
|
local separator = ' '
|
|
|
|
|
|
local function createMessage()
|
|
local words = {}
|
|
table.insert(words, 'Hello')
|
|
table.insert(words, 'world')
|
|
return table.concat(words, separator)
|
|
end
|
|
|
|
|
|
local function withEmphasis(func)
|
|
return function()
|
|
return func() .. '!'
|
|
end
|
|
end
|
|
|
|
|
|
createMessage = withEmphasis(createMessage)
|
|
|
|
print(createMessage())
|