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