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

@ -256,7 +256,7 @@ impl UniversalNamespaceRegistry {
},
Dependency::Path { path } => {
let module = ExternalModule::load_from_file(Path::new(path))?;
self.nyash_modules.insert(namespace_name.clone(), Arc::new(module));
self.hako_modules.insert(namespace_name.clone(), Arc::new(module));
},
Dependency::Builtin { .. } => {
// 組み込みライブラリは既に初期化済み
@ -298,7 +298,7 @@ impl UniversalNamespaceRegistry {
}
// Nyashモジュールチェック
if let Some(_module) = self.nyash_modules.get(namespace_name) {
if let Some(_module) = self.hako_modules.get(namespace_name) {
if !context.module_namespaces.contains(&namespace_name.to_string()) {
context.module_namespaces.push(namespace_name.to_string());
}
@ -351,7 +351,7 @@ impl UniversalNamespaceRegistry {
// 3. Nyashモジュール解決
for namespace in &context.module_namespaces {
if let Some(module) = self.nyash_modules.get(namespace) {
if let Some(module) = self.hako_modules.get(namespace) {
if let Some(function) = module.resolve_function(box_name, method_name) {
return Ok(ResolvedCall::ModuleCall {
namespace: namespace.clone(),
@ -580,7 +580,7 @@ impl VmBackend {
#### **Phase 0: 基本統合テスト**
```nyash
# test_basic_integration.nyash
# test_basic_integration.hako
using nyashstd
# 組み込み標準ライブラリのみ
@ -590,7 +590,7 @@ assert(math.sin(0) == 0)
#### **Phase 1: BID統合テスト**
```nyash
# test_bid_integration.nyash
# test_bid_integration.hako
using nyashstd
using console_api
@ -601,7 +601,7 @@ console.log("Testing") # FFI-ABI
#### **Phase 2: 完全統合テスト**
```nyash
# test_full_integration.nyash
# test_full_integration.hako
using nyashstd
using console_api
using mylib
@ -614,7 +614,7 @@ mylib.process("data") # Nyashモジュール
### エラーハンドリングテスト
```nyash
# test_error_handling.nyash
# test_error_handling.hako
try {
using nonexistent_api
} catch error {