preparing 0.9 version, rename to crl1.h
[svn/Cll1h/.git] / demos / for_range.c
diff --git a/demos/for_range.c b/demos/for_range.c
deleted file mode 100644 (file)
index c96f24c..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-#include "cll1.h"
-
-program
-{
- int i,j=1;
-
- echo("Just plain vanilla auto-increment:\tfor_range(i,1,5)");
- for_range(i,1,5)
- {
-  printf(" [%d]",i);
- }
- print("");
-
- echo("Single-evaluation of macro argument:\tj=1; for_range(i,0,j++)");
- for_range(i,0,j++)
- {
-  printf(" [%d]",i);
- }
- print("");
-
- echo("Just plain vanilla auto-decrement:\tfor_range(i,1,0)");
- for_range(i,1,0)
- {
-  printf(" [%d]",i);
- }
- print("");
-
- echo("Single iteration is possible too:\tfor_range(i,1,1)");
- for_range(i,1,1)
- {
-  printf(" [%d]",i);
- }
- print("");
-
- echo("Yet another example of macro safety:\tj=2; for_range(i,5,--j)");
- for_range(i,5,--j)
- {
-  printf(" [%d]",i);
- } 
- print("");
-
- echo("Nesting of this macro seems to be safe:\tfor_range(i,1,3) for_range(j,3,1)");
- for_range(i,1,3)
- {
-  for_range(j,3,1)
-  {
-   printf(" [%d,%d]",i,j);
-  }
- }
- print("");
-}
This page took 0.113812 seconds and 4 git commands to generate.