nyash-codex
f813659d2e
refactor(compiler): Stage-B compiler simplification and test infrastructure
**Compiler Simplification (compiler_stageb.hako):**
- Remove complex fallback system (_fallback_enabled, _fallback_program)
- Remove flag parsing system (_collect_flags, _parse_signed_int)
- Streamline to single-method implementation (main only)
- Focus: parse args/env → extract main body → FlowEntry emit
- 149 lines simplified, better maintainability
**Parser Cleanup:**
- Fix trailing whitespace in members.rs (static_def)
- Add child_env module to runner/mod.rs
**Test Infrastructure (stageb_helpers.sh):**
- Enhance Stage-B test helper functions
- Better error handling and diagnostics
**Context:**
These changes were made during PHI UseBeforeDef debugging session.
Simplified compiler_stageb.hako eliminates unnecessary complexity
while maintaining core Stage-B compilation functionality.
**Impact:**
✅ Reduced Stage-B compiler complexity (-12 lines net)
✅ Clearer single-responsibility implementation
✅ Better test infrastructure support
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-01 20:58:26 +09:00
..
2025-11-01 16:56:26 +09:00
2025-11-01 19:57:09 +09:00
2025-09-18 13:35:38 +09:00
2025-09-24 03:28:24 +09:00
2025-11-01 19:48:40 +09:00
2025-09-28 12:19:49 +09:00
2025-09-24 09:30:42 +09:00
2025-11-01 19:42:20 +09:00
2025-09-22 07:54:25 +09:00
2025-11-01 07:02:04 +09:00
2025-09-28 12:19:49 +09:00
2025-11-01 20:58:26 +09:00
2025-11-01 19:48:40 +09:00
2025-11-01 13:28:56 +09:00
2025-09-26 00:27:02 +09:00
2025-11-01 20:06:41 +09:00
2025-09-17 07:43:07 +09:00
2025-09-18 13:35:38 +09:00