Charles KWON OhJun
6ffcf77dd8
fix: Phase 3 — #25,28,29,41 token/AST/parser cleanup
Files modified (4):
compiler/token/token.go — #25: Replace hand-rolled itoa with strconv.Itoa
Fixes math.MinInt overflow bug in original implementation
compiler/ast/ast.go — #29: Fix VarDecl.End() returning last var position
Was returning Pos() (useless span info)
compiler/parser/stmtreg.go — #28: Eliminate all 7 token array mutations
rewriteAsIdent() modifies p.current only, not the token array
Prevents backtracking corruption and improves safety
compiler/lexer/lexer.go — Already clean from Phase 2
Issues resolved: #25 (MEDIUM), #28 (MEDIUM), #29 (MEDIUM), #41 partial (LOW)
Total fixed: 29/53
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 11:58:20 +09:00
..
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-04-01 11:58:20 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 12:13:21 +09:00
2026-03-31 12:13:21 +09:00
2026-04-01 10:17:30 +09:00
2026-03-31 09:57:47 +09:00
2026-03-31 11:31:44 +09:00
2026-03-31 11:31:44 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00
2026-03-31 09:41:50 +09:00