feat(joinir): Phase 213-2 Step 2-2 & 2-3 Data structure extensions

Extended PatternPipelineContext and CarrierUpdateInfo for Pattern 3 AST-based generalization.

Changes:
1. PatternPipelineContext:
   - Added loop_condition: Option<ASTNode>
   - Added loop_body: Option<Vec<ASTNode>>
   - Added loop_update_summary: Option<LoopUpdateSummary>
   - Updated build_pattern_context() for Pattern 3

2. CarrierUpdateInfo:
   - Added then_expr: Option<ASTNode>
   - Added else_expr: Option<ASTNode>
   - Updated analyze_loop_updates() with None defaults

Status: Phase 213-2 Steps 2-2 & 2-3 complete
Next: Create Pattern3IfAnalyzer to extract if statement and populate update summary
This commit is contained in:
nyash-codex
2025-12-10 00:01:53 +09:00
parent 577b5b01d5
commit d7805e5974
138 changed files with 3529 additions and 378 deletions

View File

@ -104,7 +104,7 @@ cargo update
cargo build --release
# WASM/AOT テスト
./target/release/nyash --aot test_simple.hako
./target/release/hakorune --aot test_simple.hako
wasmtime --allow-precompiled test_simple.cwasm
```
@ -170,7 +170,7 @@ config.cranelift_opt_level(OptLevel::Speed)?;
### 技術指標
```bash
# ✅ 成功条件
./target/release/nyash --aot test.hako # コンパイル成功
./target/release/hakorune --aot test.hako # コンパイル成功
wasmtime --allow-precompiled test.cwasm # 実行成功
echo $? # 0 (正常終了)
```

View File

@ -154,10 +154,10 @@ wasmtime 35.0.0 # 実行時
### 基本動作テスト
```bash
# BoxCall テスト
./target/release/nyash --compile-wasm test_boxcall.hako
./target/release/hakorune --compile-wasm test_boxcall.hako
# AOT テスト
./target/release/nyash --aot test_simple.hako
./target/release/hakorune --aot test_simple.hako
wasmtime --allow-precompiled test_simple.cwasm
```

View File

@ -208,9 +208,9 @@ console.call("log", "Hello Browser!") # ExternCall実装必要
### 基本機能復旧
```bash
# 以下が全て成功すること
./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
./target/release/hakorune --compile-wasm test_basic_boxcall.hako
./target/release/hakorune --compile-wasm test_box_operations.hako
./target/release/hakorune --compile-wasm test_extern_integration.hako
# WASM実行成功
wasmtime test_basic_boxcall.wasm