Documentation
Two tracks: pick the one that matches where you're starting from. They link into each other, so it's easy to cross over once you know what you're looking for.
New to Lua? Start here
No Lua experience assumed. Covers the language itself, not yet Luak's embedding API.
Introduction
What Lua is, and what its syntax looks like.
Variables & Types
The eight types, local vs global, and truthiness rules.
Control Flow
if, while, repeat, and the numeric and generic for loops.
Functions
Multiple returns, varargs, closures and method syntax.
Tables
Lua's one data structure: arrays, dictionaries, and both at once.
Strings & Patterns
String basics and Lua's lightweight pattern matching.
Already know Lua? Add Luak
Installing, embedding, and what to expect target by target.
Getting Started
Add the Gradle or Maven dependency and run your first script.
Standard Library
Base, package, table, string, coroutine, math, utf8, io and os.
Embedding Guide
LuaPlatform.standardGlobals() on every target, plus luajava and javax.script on the JVM.
Platform Support and Limitations
What changes target to target: files, require, environment variables, weak tables.