008 event pump

○ Planned This feature is planned but not yet implemented.

BUG: Label jump @loop(iteration: iteration + 1) fails — 'iteration' not in scope.

Error Details

output_emitted.zig:72:38: error: use of undeclared identifier 'iteration'

Failure Output

Showing last 10 of 130 lines
[MAIN DEBUG] Before file write:
[MAIN DEBUG]   generated_code.len = 13238
[MAIN DEBUG]   generated_code.ptr = u8@1097cf988
[MAIN DEBUG]   emitted_file = output_emitted.zig
[MAIN DEBUG]   emitted_file.ptr = u8@1043df5be
[MAIN DEBUG]   First 50 bytes: // Access compiler flags from backend.zig via root

Error: output_emitted.zig:72:38: error: use of undeclared identifier 'iteration'
                    loop_iteration = iteration + 1;
                                     ^~~~~~~~~

Code

input.kz

Expected output

KEYBOARD
MOUSE
OTHER
OTHER
KEYBOARD
MOUSE
OTHER
OTHER
QUIT

Test Configuration

MUST_RUN