|
|
48a471bb1d
|
fix: Phase 5 — MEDIUM #27,30,31 + LOW #25,41 complete cleanup
Files modified (6):
compiler/parser/parser.go — #27: Add currentUpper() helper
Replaces 30 strings.ToUpper(p.current.Literal) calls
compiler/parser/stmtreg.go — Remove now-unused strings import
compiler/parser/expr.go — #30: Document comma expr Harbour semantics
compiler/gengo/gengo.go — #31: Replace 8 TODO comments with WARN
Macro expr now emits MacroPush() instead of TODO
compiler/token/token.go — #25: Replace itoa with strconv.Itoa
#41: Add 50+ missing kindNames entries for complete String()
Issues resolved: #25,27,30,31,41
Total fixed: 39/53
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-01 21:00:44 +09:00 |
|
|
|
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 |
|
|
|
59568f3301
|
Five v0.9 — Harbour + Go fusion language
- Compiler: PP → Lexer → Parser → Analyzer → Gengo pipeline
- Parser: 232/236 (98%) Harbour compatibility, registry-based dispatch
- RTL: 351 Harbour-compatible functions
- RDD: DBF/NTX/CDX engines with Rushmore bitmap optimization
- Go Interop: IMPORT + pkg.Func() + obj:Method() with FastPath (15M calls/sec)
- HB_FUNC API: Full Harbour C API compatible Go bridge
- Concurrency: SPAWN/LAUNCH/GOROUTINE, <-, WATCH, PARALLEL FOR, ASYNC/AWAIT
- Extensions: Multi-return, DEFER, Slice, f-string, Nil-safe ?:, CONST
- Macro Compiler: Runtime AST parsing and evaluation
- Debugger: TUI debugger with source display, breakpoints, stepping
- FRB: Native + Pcode dual mode runtime binary
- Tests: 13 packages ALL PASS
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-03-31 09:41:50 +09:00 |
|