Full Control Flow Standard
Complete control flow with FOR loops (7 integer types + float, negative STEP), WHILE, DO/UNTIL, SELECT CASE (nesting, TO ranges, IS expressions), GOSUB/RETURN, EXIT, ON GOTO, ON KEY CALL, and colon statement separators on a single line.
FOR Loops - 7 Integer Types + Float + Negative STEP
FOR loops support LONG, INTEGER, QUAD, DWORD, WORD, BYTE, CURRENCY (all tested individually), and DOUBLE/SINGLE/EXTENDED with float STEP. Negative STEP works correctly for all integer types.
SELECT CASE - Nested, TO Ranges, IS Expressions
SELECT CASE supports: exact match, TO ranges, IS > < = <> expressions, CASE ELSE, and nested CASE blocks. No fall-through to outer CASE ELSE.
ON KEY CALL - Keyboard Hook Subroutines
PBXB64 Addition Registers a low-level keyboard hook (WH_KEYBOARD_LL) that calls a named PB subroutine on key press/release.
ON KEY [DOWN|UP] CALL SubName registers a WH_KEYBOARD_LL hook. The named subroutine is called when the specified key event occurs. Works in console and GUI modes.
Colon Separator - Multiple Statements per Line
The colon : separator allows multiple statements on a single line. Both statements are correctly parsed and executed. Critical for compact code layouts.
Other Control Flow
WHILE/WEND, DO/UNTIL/LOOP, EXIT DO/EXIT FOR/EXIT FUNCTION, GOSUB/RETURN, and ON GOTO all fully implemented with correct codegen and no infinite loops.