Lua Cheat Sheet for Programmers

If you don’t know Lua, the popular programming language often used as a embedded scripting language, but you do know how to program, here’s a cheat sheet that covers the basics of the language’s syntax.

The cheat sheet itself is an executable program. You can download the file here: lua_cheat_sheet.lua

For quick viewing, here it is on Pastebin

For printing, here it is as a PNG:
Lua Cheat Sheet

3 Responses to “Lua Cheat Sheet for Programmers”

  1. Rodney Reid Says:

    Loved this – thanks for starting to teach me Lua in under 15 minutes!

    I like the style of Lua – surprised I ignored it for so long.

  2. Ghassan Says:

    Might be good to mention/underline the meaning and importance of ‘local’ variables.

  3. khelkun Says:

    Iwould add this one :

    Lua 5.1.2 Copyright (C) 1994-2007, PUC-Rio
    > function foo() return end
    > function bar() return nil end
    > print(foo())

    > print(bar())

Leave a Reply

free blog themes