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

@ -187,7 +187,7 @@ impl ModuleResolver {
}
// ファイルパス解決
let file_path = self.nyash_link.resolve_dependency(module_name)
let file_path = self.hako_link.resolve_dependency(module_name)
.ok_or(ResolverError::ModuleNotFound(module_name.to_string()))?;
// 再帰的読み込み防止
@ -376,15 +376,15 @@ impl NyashInterpreter {
### Phase 1テスト
```nyash
# test_basic_using.nyash
# test_basic_using.hako
# 基本using文テスト
# ファイル: mylib.nyash
# ファイル: mylib.hako
static function hello() {
return "Hello from mylib!"
}
# ファイル: main.nyash
# ファイル: main.hako
using mylib
local result = mylib.hello()
assert(result == "Hello from mylib!")
@ -392,12 +392,12 @@ assert(result == "Hello from mylib!")
### Phase 2テスト
```nyash
# test_nyash_link.nyash
# test_nyash_link.hako
# nyash.linkファイル連携テスト
# nyash.link内容:
# [dependencies]
# mylib = { path = "./mylib.nyash" }
# mylib = { path = "./mylib.hako" }
using mylib
local result = mylib.process("data")
@ -406,10 +406,10 @@ assert(result == "processed: data")
### Phase 3テスト
```nyash
# test_namespace.nyash
# test_namespace.hako
# 名前空間システムテスト
# nyashstd.nyash:
# nyashstd.hako:
# namespace nyashstd {
# static box string {
# static upper(str) { ... }
@ -457,7 +457,7 @@ assert(result2 == "WORLD")
- 動的モジュール読み込み
### Phase 6: 標準ライブラリ
- nyashstd.nyash完全実装
- nyashstd.hako完全実装
- string/math/io/http モジュール
- ドキュメント生成