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.