🔧 Problem: Selfhost ParserBox doesn't recognize LOCAL keyword
- Only supports lowercase 'local' (Stage-1/2)
- Stage-3 mode with HAKO_PARSER_STAGE3=1 not working
✅ Solution: Add LOCAL keyword recognition in ParserStmtBox
- Check ctx.stage3_enabled() before parsing
- Support both 'local' and 'LOCAL' keywords
- Maintain backward compatibility with Stage-1/2
📍 Modified: lang/src/compiler/parser/stmt/parser_stmt_box.hako:109-149
- Added is_local_kw flag and kw_len variable
- Check 'local' first (always)
- Check 'LOCAL' if stage3_enabled() (conditional)
🐛 Current status:
- Using-chain parsing: ✅ SUCCESS (2 files)
- Stage-B test: ❌ Still failing with 'Unexpected token LOCAL at line 19'
- Next: Investigate which file's line 19 is causing the error
Related: #stageb-緑化 #phase-20.33 #selfhost-parser
- restore: lang/src/compiler/** (parser/emit/builder/pipeline_v2) from e917d400
- docs: docs/development/selfhosting/index-operator-hako.md
- smokes(hako): tools/smokes/v2/profiles/quick/core/index_operator_hako.sh (opt-in)
- smokes(vm): adjust index_operator_vm.sh for semicolon gate + stable error text
- rust/parser: allow IndexExpr and assignment LHS=Index; postfix parse LBRACK chain
- rust/builder: lower arr/map index to BoxCall get/set; annotate array/map literals; Fail‑Fast for unsupported types
- CURRENT_TASK: mark Rust side done; add Hako tasks checklist
Note: files disappeared likely due to branch FF to a lineage without lang/src/compiler; no explicit delete commit found. Added anchor checks and suggested CI guard in follow-up.