lua: phase 3 — functions + closures (+18 tests)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled
This commit is contained in:
@@ -51,7 +51,7 @@ Each item: implement → tests → tick box → update progress log.
|
||||
- [x] 30+ eval tests in `lib/lua/tests/eval.sx`
|
||||
|
||||
### Phase 3 — tables + functions + first PUC-Rio slice
|
||||
- [ ] `function` (anon, local, top-level), closures
|
||||
- [x] `function` (anon, local, top-level), closures
|
||||
- [ ] Multi-return: return as list, unpack at call sites
|
||||
- [ ] Table constructors (array + hash + computed keys)
|
||||
- [ ] Raw table access `t.k` / `t[k]` (no metatables yet)
|
||||
@@ -82,6 +82,7 @@ Each item: implement → tests → tick box → update progress log.
|
||||
|
||||
_Newest first. Agent appends on every commit._
|
||||
|
||||
- 2026-04-24: lua: phase 3 — functions (anon/local/top-level) + closures verified (lexical capture, mutation-through-closure, recursion, HOFs). 175 total tests.
|
||||
- 2026-04-24: lua: phase 2 transpile — arithmetic, comparison, short-circuit logical, `..` concat, if/while/repeat/for-num/local/assign. 157 total tests green.
|
||||
- 2026-04-24: lua: parser (exprs with precedence, all phase-1 statements, funcbody, table ctors, method/chained calls) — 112 total tokenizer+parser tests
|
||||
- 2026-04-24: lua: tokenizer (numbers/strings/long-brackets/keywords/ops/comments) + 56 tests
|
||||
|
||||
Reference in New Issue
Block a user