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

@ -179,7 +179,7 @@ impl RuntimeImports {
### Level 1: 基本BoxCall
```nyash
# test_basic_boxcall.nyash
# test_basic_boxcall.hako
local str = "Hello"
local len = str.length() # BoxCall実装必要
print("Length: " + len.toString()) # BoxCall + ExternCall
@ -187,7 +187,7 @@ print("Length: " + len.toString()) # BoxCall + ExternCall
### Level 2: Box操作
```nyash
# test_box_operations.nyash
# test_box_operations.hako
local arr = new ArrayBox()
arr.push("item1") # BoxCall実装必要
local item = arr.get(0) # BoxCall実装必要
@ -196,7 +196,7 @@ print(item.toString()) # BoxCall実装必要
### Level 3: 外部連携
```nyash
# test_extern_integration.nyash
# test_extern_integration.hako
local console = new ExternBox("console")
console.call("log", "Hello Browser!") # ExternCall実装必要
```
@ -208,9 +208,9 @@ console.call("log", "Hello Browser!") # ExternCall実装必要
### 基本機能復旧
```bash
# 以下が全て成功すること
./target/release/nyash --compile-wasm test_basic_boxcall.nyash
./target/release/nyash --compile-wasm test_box_operations.nyash
./target/release/nyash --compile-wasm test_extern_integration.nyash
./target/release/nyash --compile-wasm test_basic_boxcall.hako
./target/release/nyash --compile-wasm test_box_operations.hako
./target/release/nyash --compile-wasm test_extern_integration.hako
# WASM実行成功
wasmtime test_basic_boxcall.wasm