This page documents the current status of Lua 5.4 syntax support in the
Moonquakes parser, making the boundaries between supported and unsupported language features explicit.
Statements
- [x] assignment - x = value
- [x] field assignment - t.field = value
- [x] nested field assignment - t.a.b = value
- [x] local declaration - local x = value
- [x] local function - local function f() end
- [x] function definition - function f() end
- [x] return - return value
- [ ] return multiple - return a, b, c
- [x] if-then-end - if cond then ... end
- [x] if-then-else - if cond then ... else ... end
- [x] if-elseif-else - if ... elseif ... else ... end
- [x] while - while cond do ... end
- [x] repeat-until - repeat ... until cond
- [x] for numeric - for i = 1, 10 do ... end
- [ ] for generic - for k, v in pairs(t) do ... end
- [x] break - break
- [ ] goto - goto label
- [ ] label - ::label::