X-Git-Url: http://git.harvie.cz/?p=svn%2FCll1h%2F.git;a=blobdiff_plain;f=demos%2Fadvanced-hello-world.c;fp=demos%2Fadvanced-hello-world.c;h=0000000000000000000000000000000000000000;hp=124788a5f180d5cb9a86f637898fe31d91a900a3;hb=e63f1bc2438012b5f2f6592a474892501149af18;hpb=6a60bc82e8b8e6cccd0d4c2214a1f291662215f0 diff --git a/demos/advanced-hello-world.c b/demos/advanced-hello-world.c deleted file mode 100644 index 124788a..0000000 --- a/demos/advanced-hello-world.c +++ /dev/null @@ -1,35 +0,0 @@ -#include "cll1.h" - -program -{ - print("* echo()"); - echo("Hello"," ","world"," !\n"); - print("* print()"); - print("Hello","world","!"); - print("* NIL"); - print("We can print", NULL, "safely."); - NIL="(hic sunt crocodiles)"; - print("We can print", NULL, "safely."); - - { - str p = "print", a = NULL; - print("* coalesce():"); - print("We can", coalesce(p, "everything"), "almost", coalesce(a, "anything"), "safely."); - } - - echo("Surprisingly ->",NIL," (you can't see this)"); - print("<- nothing special here."); - print("* OFS"); - OFS=""; - EOL=""; - print("We","Can","Print","Without","Spaces","BetweenArgs."); - OFS=":"; - print("We","can","customize","print."); - OFS="..."; - EOL="<--\n"; - print(""); - print("* MAYBE ?"); - repeat(4) print((MAYBE ? "Hello" : "Hi"), (MAYBE ? "world" : "friend"), (MAYBE ? "!" : "?")); - print("* WHOKNOWS ?"); - repeat(4) print((WHOKNOWS ? "Hello" : "Hi"), (WHOKNOWS ? "world" : "friend"), (WHOKNOWS ? "!" : "?")); -}