performance test - write, fwrite and cll1 single arugment echo added
[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 EOL="";
18 print("We","Can","Print","Without","Spaces","BetweenArgs.");
19 OFS=":";
20 print("We","can","customize","print.");
21 OFS="...";
22 EOL="<--\n";
23 print("");
24 print("* MAYBE ?");
25 repeat(4) print((MAYBE ? "Hello" : "Hi"), (MAYBE ? "world" : "friend"), (MAYBE ? "!" : "?"));
26 print("* WHOKNOWS ?");
27 repeat(4) print((WHOKNOWS ? "Hello" : "Hi"), (WHOKNOWS ? "world" : "friend"), (WHOKNOWS ? "!" : "?"));
28 }
This page took 0.266715 seconds and 4 git commands to generate.