X-Git-Url: http://git.harvie.cz/?p=svn%2FCll1h%2F.git;a=blobdiff_plain;f=demos%2Frepeat.c;fp=demos%2Frepeat.c;h=0000000000000000000000000000000000000000;hp=491b74ddde05917cc6ed7b776aa41ba72f094eb7;hb=e63f1bc2438012b5f2f6592a474892501149af18;hpb=6a60bc82e8b8e6cccd0d4c2214a1f291662215f0 diff --git a/demos/repeat.c b/demos/repeat.c deleted file mode 100644 index 491b74d..0000000 --- a/demos/repeat.c +++ /dev/null @@ -1,36 +0,0 @@ -#include "cll1.h" - -program -{ - int i=2; - - repeat(1) - { - print("This is demonstration, that nesting of C<<1 repeat(N) { ... } flow-control macro is completely safe:"); - repeat(i++) - { - echo("This loop is supposed to be repeated twice: "); - repeat(i) - { - printf("[doing this %d times] ",i); - } - repeat(0) - { - printf("[doing this 0 times] ",i); - } - repeat(-1) - { - printf("[doing this -1 times] ",i); - } - repeat(1) - { - printf("[doing this 1 times] ",i); - } - print("... finished."); - } - } - repeat(--i) - { - print("This loop is not nested and it is supposed to be repeated again just twice."); - } -}