Learn Lua in Y Minutes
I started with BlackBulletIV's Lua for programmers. Next I read the official Programming in Lua book. That's the how. It might be helpful to check out the Lua short reference on lua-users.org. The main topics not covered are standard libraries: By the way, the entire file is valid Lua; save it as learn.lua and run it with "lua learn.lua" ! This was first written for tylerneylon.com, and is also available as a GitHub gist. Have fun with Lua! Got a suggestion? A correction, perhaps? Open an Issue on the GitHub Repo, or make a pull request yourself! Originally contributed by Tyler Neylon, and updated by 9 contributors. © 2025 Tyler Neylon
Learn Lua in Y Minutes Learn X in Y minutes Where X=Lua Language: English Deutsch español français italiano 한국어 português (Brasil) русский 中文 (简体) Get the code: learnlua.lua -- Two dashes start a one-line comment. --[[ Adding two ['s and ]'s makes it a multi-line comment. --]] ---------------------------------------------------- -- 1. Variables and flow control. ---------------------------------------------------- num = 42 -- Numbers can be integer or floating point. s = 'walternate' -- Immutable strings like Python. t = "double-quotes are also fine" u = [[ Double brackets start and end multi-
Explore this link on the map →saved by
related reading
- Programming in Lua (first edition)lua.org
- Lua can be a really cool HTML templating engine · riki's houseriki.house
- A half-hour to learn Rustfasterthanli.me
- Rust Language Cheat Sheetcheats.rs
- A Gentle Introduction to LLVM IR · mcyoungmcyoung.xyz
- 9. Classes — Python 3.14.6 documentationdocs.python.org
- 變數、常數、流程控制、迴圈 為你自己學 Ruby on Rails | 高見龍railsbook.tw
- A Lean Syntax Primer — overreactedoverreacted.io
- styleguide | Style guides for Google-originated open-source projectsgoogle.github.io
- 1. Kaleidoscope: Kaleidoscope Introduction and the Lexer — LLVM 23.0.0git documentationllvm.org
- HiPhish's Workshophiphish.github.io
- The Lox Language · Crafting Interpreterscraftinginterpreters.com