X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fadvanced-hello-world.c;h=7117279b1ba688498733f03a5041103066b38655;hb=6e567bcce620b5312125f920e88c68a1404e71bf;hp=e855e5e9d2894a8a29bf38d287dc9fe800ea7ebb;hpb=de48beef600fc5889f30b2094e392c1f5d8ed09a;p=svn%2FCll1h%2F.git diff --git a/demos/advanced-hello-world.c b/demos/advanced-hello-world.c index e855e5e..7117279 100644 --- a/demos/advanced-hello-world.c +++ b/demos/advanced-hello-world.c @@ -2,9 +2,19 @@ program { - echo("Hello ",NULL," ","world"," ! "); - print("Hello", "world",NULL,"!"); - + print("* echo()"); + echo("Hello"," ","world"," !\n"); + print("* print()"); + print("Hello","world","!"); + print("* MAYBE ?"); repeat(4) print((MAYBE ? "Hello" : "Hi"), (MAYBE ? "world" : "friend"), (MAYBE ? "!" : "?")); + print("* WHOKNOWS ?"); repeat(4) print((WHOKNOWS ? "Hello" : "Hi"), (WHOKNOWS ? "world" : "friend"), (WHOKNOWS ? "!" : "?")); + print("* NIL"); + print("We can print",NULL,"safely."); + print("* coalesce():"); + print("We can",coalesce("print","anything"),coalesce(NULL,"anything"),"safely."); + print("* OFS"); + OFS=":"; + print("We","can","customize","print"); }