LOOP stmts END
The LOOP statement executes stmts repeatedly in an infinite loop. Normally an EXIT statement appears in some IF statement in stmts to exit the loop when some condition becomes TRUE.
The following example prints "Hello" forever.
LOOP IO.Put("Hello\n"); END (* LOOP *)
The following code reads from standard input until there is an eof.
LOOP IF IO.EOF() EXIT END; EVAL IO.GetLine(); END;