Labels & Jumps Demo
Generate it:
lumen --examples infinite-loop
label repeat
println 'Hello, world!'
jump repeat
The smallest possible demonstration of Lumen’s looping primitive. label repeat marks a point in the program; jump repeat transfers control back to it — forever, in this case, since there’s no condition around the jump. Run it and stop it with Ctrl+C.
See Labels & Jumps for how to turn this into a bounded loop with an exit condition.
Scan into Android
See Lumen on Android for how the scan-and-run pipeline works.
Note
This particular program never halts on its own (Ctrl+C on desktop) — on Android, use the runtime’s cooperative cancellation to stop it instead.