Mirror of CollapseOS
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

17 lignes
588B

  1. Flow
  2. Note that flow words can only be used in definitions. In the
  3. INTERPRET loop, they don't have the desired effect because each
  4. word from the input stream is executed immediately. In this
  5. context, branching doesn't work.
  6. f IF A ELSE B THEN: if f is true, execute A, if false, execute
  7. B. ELSE is optional.
  8. [IF] .. [THEN]: Meta-IF. Works outside definitions. No [ELSE].
  9. BEGIN .. f UNTIL: if f is false, branch to BEGIN.
  10. BEGIN .. AGAIN: Always branch to BEGIN.
  11. x y DO .. LOOP: LOOP increments y. if y != x, branch to DO.
  12. (cont.)