Iterations and temporizations

Usually commands are executed immediately, but you can delay or periodically repeat a finite or infinite number of times.

Iterations

  • * (loop)
  • ^n (repeat n times)
  • ^ (loop)

Temporizations

Periodic operators:

  • #t (loop every t seconds)
  • #t ^n (repeat n times every t seconds)

Delayed operator:

  • ##d (run once in d seconds)
  • ## (run once at the next cycle, after about 1/10 of a second. Used in finite state automata)

Example:

Compositions

Previous operators can be combined in the following ways:

    • instruction * ##d (loop in d seconds)
    • instruction ^ ##d (loop in d seconds)
    • instruction ^n ##d (repeat n times in d seconds)
    • instruction #t ##d (loop every t seconds in d seconds)
    • instruction #t ^n ##d (repeat n times every t seconds in d seconds)

Display

  • ?? (list) displays the active iterated and timed commands