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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user