phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0

This commit is contained in:
nyash-codex
2025-11-06 15:41:52 +09:00
parent 2dc370223d
commit 77d4fd72b3
1658 changed files with 6288 additions and 2612 deletions

View File

@ -186,10 +186,10 @@ Error: @derive(Equals) cannot be applied to UserBox
### デバッグ支援
```bash
# マクロ展開の可視化
nyash --expand program.nyash
nyash --expand program.hako
# ステップバイステップ追跡
NYASH_MACRO_TRACE=1 nyash program.nyash
NYASH_MACRO_TRACE=1 nyash program.hako
```
## 📊 成功指標2週間後

View File

@ -110,7 +110,7 @@ test_person_equals() {
```bash
# テスト実行
nyash --run-tests my_program.nyash
nyash --run-tests my_program.hako
# [TEST] test_person_creation ... OK
# [TEST] test_person_equals ... OK
# Tests: 2 passed, 0 failed
@ -158,10 +158,10 @@ macro bad_macro() {
### **マクロ展開の可視化**
```bash
# マクロ展開結果を表示
nyash --expand my_program.nyash
nyash --expand my_program.hako
# 詳細トレース
NYASH_MACRO_TRACE=1 nyash my_program.nyash
NYASH_MACRO_TRACE=1 nyash my_program.hako
# [MACRO] @derive(Equals) -> generating equals() method for Person
# [MACRO] @test -> collecting test_person_creation()
# [MACRO] Expansion complete: 2 macros processed, 0 errors
@ -174,7 +174,7 @@ box Person {}
// エラー例:
// error: Unknown derive trait 'UnknownTrait'
// --> person.nyash:1:9
// --> person.hako:1:9
// |
// 1 | @derive(UnknownTrait)
// | ^^^^^^^^^^^^