07a14b851a91763e7b8a46283dce1f3b48c2e8b7
[svn/Cll1h/.git] / demos / advanced-hello-world.c
1 #include "cll1.h"
2
3 program
4 {
5 print("* echo()");
6 echo("Hello"," ","world"," !\n");
7 print("* print()");
8 print("Hello","world","!");
9 print("* NIL");
10 print("We can print",NULL,"safely.");
11 NIL="(anything)";
12 print("We can print",NULL,"safely.");
13 print("* coalesce():");
14 print("We can",coalesce("print","everything"),coalesce(NULL,"everything"),"safely.");
15 print("* OFS");
16 OFS=":";
17 print("We","can","customize","print");
18 OFS="...";
19 print("* MAYBE ?");
20 repeat(4) print((MAYBE ? "Hello" : "Hi"), (MAYBE ? "world" : "friend"), (MAYBE ? "!" : "?"));
21 print("* WHOKNOWS ?");
22 repeat(4) print((WHOKNOWS ? "Hello" : "Hi"), (WHOKNOWS ? "world" : "friend"), (WHOKNOWS ? "!" : "?"));
23 }
This page took 0.24087 seconds and 3 git commands to generate.