binary B+ tree - first attempt, compiles and runs
[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");
eeff2724 10 print("We can print", NULL, "safely.");
bce4b05d 11 NIL="(hic sunt crocodiles)";
eeff2724 12 print("We can print", NULL, "safely.");
13
14 {
15 str p = "print", a = NULL;
16 print("* coalesce():");
17 print("We can", coalesce(p, "everything"), "almost", coalesce(a, "anything"), "safely.");
18 }
19
bce4b05d 20 echo("Surprisingly ->",NIL," (you can't see this)");
21 print("<- nothing special here.");
6e567bcc 22 print("* OFS");
06ab91f0 23 OFS="";
24 EOL="";
25 print("We","Can","Print","Without","Spaces","BetweenArgs.");
6e567bcc 26 OFS=":";
06ab91f0 27 print("We","can","customize","print.");
f5725936 28 OFS="...";
e91cd880 29 EOL="<--\n";
06ab91f0 30 print("");
f5725936 31 print("* MAYBE ?");
32 repeat(4) print((MAYBE ? "Hello" : "Hi"), (MAYBE ? "world" : "friend"), (MAYBE ? "!" : "?"));
33 print("* WHOKNOWS ?");
34 repeat(4) print((WHOKNOWS ? "Hello" : "Hi"), (WHOKNOWS ? "world" : "friend"), (WHOKNOWS ? "!" : "?"));
5a5eb547 35}
This page took 0.238831 seconds and 4 git commands to generate.