- 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>
30 lines
581 B
Plaintext
30 lines
581 B
Plaintext
// Test: forceStable + key loop (same as dbedit_main but minimal)
|
|
FUNCTION Main()
|
|
LOCAL oBrowse, oCol, nKey
|
|
|
|
USE "dbf/customer"
|
|
|
|
oBrowse := TBrowseDB(0, 0, 22, 79)
|
|
oCol := TBColumnNew("ID", {|| FieldGet(1)})
|
|
oBrowse:addColumn(oCol)
|
|
oCol := TBColumnNew("FIRST", {|| FieldGet(2)})
|
|
oBrowse:addColumn(oCol)
|
|
|
|
CLS
|
|
|
|
DO WHILE .T.
|
|
oBrowse:forceStable()
|
|
nKey := Inkey(0)
|
|
DO CASE
|
|
CASE nKey = 5
|
|
oBrowse:up()
|
|
CASE nKey = 24
|
|
oBrowse:down()
|
|
CASE nKey = 27
|
|
EXIT
|
|
ENDCASE
|
|
ENDDO
|
|
|
|
USE
|
|
RETURN NIL
|