X-Git-Url: http://git.harvie.cz/?p=svn%2FCll1h%2F.git;a=blobdiff_plain;f=demos%2Fboolean.c;fp=demos%2Fboolean.c;h=0000000000000000000000000000000000000000;hp=77d1967d16ba7bbc9d6f943c7ca119526a27dfa0;hb=e63f1bc2438012b5f2f6592a474892501149af18;hpb=6a60bc82e8b8e6cccd0d4c2214a1f291662215f0 diff --git a/demos/boolean.c b/demos/boolean.c deleted file mode 100644 index 77d1967..0000000 --- a/demos/boolean.c +++ /dev/null @@ -1,22 +0,0 @@ -#include "cll1.h" - -program -{ - const bool t = TRUE, f = FALSE; - bool l, m = MAYBE; - str s; - - print("TRUE and FALSE =", btoa(t and f) ); - print("TRUE or FALSE =", btoa(t or f) ); - print("TRUE and MAYBE =", btoa(t and m) ); - print("FALSE or MAYBE =", btoa(t or m) ); - print("not FALSE =", btoa(not f) ); - print("not TRUE =", btoa(not t) ); - print("not MAYBE =", btoa(not m) ); - - for_strs(s, "TRUE","false","yes","NO","True","FALSE","YES","no","Yes","No","1","0","abc","xyz","Eyes","Ears","rue","alse","oui","no","ano","ne"," ","NULL",NULL,EOL,"","ano","ne") - { - l = atob(s); - echo("\"", s, "\"\tmeans ", btoa(l), EOL); - } -}