docs: CHANGELOG 更新 v0.3 — for循环 + 测试补全
This commit is contained in:
@@ -1,5 +1,19 @@
|
||||
# Changelog
|
||||
|
||||
## 0.3.0 (2026-06-05)
|
||||
|
||||
### Added
|
||||
- `for` 循环 + range: `for i in start..end { ... }` (parser 去糖为 let mut + while + assign)
|
||||
- `..` range 运算符 (TOK_DOT_DOT)
|
||||
- 浮点数 lexer 修复:`..` 不与 `.` 冲突
|
||||
- sema 测试补全:let mut assign, immutable assign error, str type, str concat (9→21 tests)
|
||||
- codegen 测试补全:while 循环 LLVMVerifyModule (7→9 tests)
|
||||
- 集成测试:`10_for_range.l`、`11_for_step2.l`
|
||||
|
||||
### Known Issues
|
||||
- LLVM 22 C API 不支持 mem2reg pass(需用 opt 工具优化 alloca)
|
||||
- str+str 运行时拼接使用 malloc(编译后程序存在泄漏,非编译器本身)
|
||||
|
||||
## 0.2.0 (2026-06-05)
|
||||
|
||||
### Added
|
||||
|
||||
Reference in New Issue
Block a user