• Lua is a lightweight, embeddable scripting language written in C and released under the MIT license.
  • It is used in e.g. the following “host” applications:
    • Neovim
    • MUSHclient
    • Mudlet
    • World of Warcraft
    • Roblox
    • Adobe Lightroom
    • VLC

Resources

FAQ

Dumping table contents

function dump(t, indent)
    indent = indent or 0
    for k, v in pairs(t) do
        print(string.rep("  ", indent) .. tostring(k) .. ": ")
        if type(v) == "table" then
            dump(v, indent + 1)
        else
            print(string.rep("  ", indent + 1) .. tostring(v))
        end
    end
end