dimgigov
|
9b473c667c
|
closures with captures: env struct + global instance + body rewriting
- AST: captureCount + captureName0..7 + captureType0..7 in Expr
- Sema: Scope_LookupUpTo + closureScope for capture analysis
- HIR Lower: env struct generation, capture assignments in skLet,
body rewriting (ekIdent -> hFieldAccess on env instance)
- C Backend: env struct def + global instance emission for closures
- Bootstrap: full capture support in sema, hir_lower, lir_lower, lir_c_backend
- Selfhost loop remains deterministic
|
2026-06-09 21:23:05 +03:00 |
|
dimgigov
|
ac969b37c1
|
v0.3.0: restructure directories
- src/ ← compiler/selfhost/ (canonical Bux compiler)
- bootstrap/ ← compiler/bootstrap/ (Nim bootstrap)
- lib/ ← library/std/ (standard library)
- rt/ ← library/runtime/ (C runtime)
- tests/ ← compiler/tests/ (unit tests)
- Remove _selfhost/ (built into build/selfhost/ now)
- Update all path references (Makefile, cli.nim, cli.bux, docs)
- Bump version to 0.3.0
|
2026-06-06 04:53:39 +03:00 |
|