Major header file rewrite and cleanup, but no new functions
[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="(hic sunt crocodiles)";
12 print("We can print",NULL,"safely.");
13 print("* coalesce():");
14 print("We can",coalesce("print","everything"),"almost",coalesce(NULL,"anything"),"safely.");
15 echo("Surprisingly ->",NIL," (you can't see this)");
16 print("<- nothing special here.");
17 print("* OFS");
18 OFS="";
19 EOL="";
20 print("We","Can","Print","Without","Spaces","BetweenArgs.");
21 OFS=":";
22 print("We","can","customize","print.");
23 OFS="...";
24 EOL="<--\n";
25 print("");
26 print("* MAYBE ?");
27 repeat(4) print((MAYBE ? "Hello" : "Hi"), (MAYBE ? "world" : "friend"), (MAYBE ? "!" : "?"));
28 print("* WHOKNOWS ?");
29 repeat(4) print((WHOKNOWS ? "Hello" : "Hi"), (WHOKNOWS ? "world" : "friend"), (WHOKNOWS ? "!" : "?"));
30 }
This page took 0.280843 seconds and 4 git commands to generate.