Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

Loops ​

LoopCompiles to
Fixed count, small body, no return or macroCopies written in place (unrolled)
while with no .else()A function that calls itself while cond holds
while with .else()Pass + exit functions; needs return run

Diagrams ​

Which form a loop compiles toctx.repeat(n) / ctx.while(cond)yesfixed count, small body,no return or macro?Unrolledcopies written in placenohas .else()?yesSelf-calling passexecute if cond run function passPass + exitneeds return run (not 1.20.1)

Released under the MIT License · Credits
These docs were written with AI; the layout and every page have been reviewed by a human.