nyash-codex
fb6129183d
Phase 22.3: Fix parser infinite loop and Stage-B JSON contamination
Fix A: Stage-B output contamination
- Add NYASH_JSON_ONLY=1 to suppress RC output
- Add awk '/^{/,/^}$/' to extract clean JSON only
- File: tools/hakorune_emit_mir.sh:46-49
Fix B: Parser infinite loop in static method parameters
- Replace must_advance! with explicit match on current_token()
- Ensure forward progress in all branches (IDENTIFIER/COMMA/NEWLINE/RPAREN)
- Add NYASH_PARSER_METHOD_PARAM_STRICT=1 for strict mode (default: tolerant)
- File: src/parser/declarations/static_def/members.rs:79-108
Acceptance criteria:
- Stage-B output has no 'RC:' contamination
- phase2231/hakorune_emit_mir_return42_canary_vm.sh passes (rc=42)
- Existing quick tests remain green (backward compatible)
2025-11-09 15:50:12 +09:00
..
2025-11-09 15:50:12 +09:00
2025-10-31 20:18:39 +09:00
2025-09-19 02:07:38 +09:00
2025-11-07 21:04:01 +09:00
2025-11-01 13:28:56 +09:00
2025-09-23 10:24:40 +09:00
2025-09-17 07:43:07 +09:00
2025-10-31 20:18:39 +09:00
2025-09-27 08:45:25 +09:00
2025-11-01 21:48:12 +09:00
2025-09-20 02:20:02 +09:00
2025-09-23 09:00:07 +09:00