refactor(joinir): Extract legacy binding path to routing_legacy_binding.rs
Phase 179-A Step 2: Separate LoopFrontendBinding JSON construction logic into dedicated module for better organization. Changes: - New file: routing_legacy_binding.rs (223 lines) - routing.rs: cf_loop_joinir_impl() simplified to 15 lines (delegates to legacy path) - Routing now clearly separates pattern-based vs. legacy binding paths Benefits: - Clear separation of concerns (pattern router vs. legacy whitelist) - routing.rs reduced from 364 to 146 lines (60% reduction) - Legacy path isolated for future deprecation
This commit is contained in:
@ -33,9 +33,9 @@
|
||||
| P2: Break | `joinir_min_loop.hako` | 単純 | 条件付きbreak | なし | なし | Outer | 単一 |
|
||||
| P3: If‑PHI | `loop_if_phi.hako` | 単純 | なし | なし | if‑PHI | Outer | 条件付き |
|
||||
| P4: Continue | `loop_continue_pattern4` | 単純 | なし | 条件付きcont | なし | Outer | 単一 |
|
||||
| P5: Trim‑like* | `TrimTest.trim`(設計中) | 単純 | 条件付きbreak | なし | なし | BodyLocal | 単一 |
|
||||
| P5: Trim‑like* | `TrimTest.trim`(設計中) | 単純 | 条件付きbreak | なし | なし | BodyLocal | 複数 |
|
||||
|
||||
\*P5 は Phase 171 時点では「検出+安全性判定」まで。実際の JoinIR lower は Phase 172 以降の仕事。
|
||||
\*P5 は Phase 171 時点では「検出+安全性判定」までだったが、Phase 172–176 で Trim / `_skip_whitespace` / `_parse_string` 最小版について JoinIR→MIR lower と複数キャリア更新まで実装済み。
|
||||
|
||||
ここまでで:
|
||||
|
||||
@ -209,4 +209,3 @@ loop (i < n) {
|
||||
JsonParserBox / Trim 系ループのインベントリと、どの Pattern に入るかの観測ログ。
|
||||
- `phase171-pattern5-loop-inventory.md`
|
||||
Trim/JsonParser 向け Pattern5(LoopBodyLocal 条件)設計の進捗。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user