binary B+ tree - first attempt, compiles and runs
[svn/Cll1h/.git] / demos / boolean.c
CommitLineData
099b0ca0 1#include "cll1.h"
2
3program
4{
25a3f430 5 const bool t = TRUE, f = FALSE;
6 bool l, m = MAYBE;
61ad8a2b 7 str s;
420bb771 8
25a3f430 9 print("TRUE and FALSE =", btoa(t and f) );
10 print("TRUE or FALSE =", btoa(t or f) );
11 print("TRUE and MAYBE =", btoa(t and m) );
12 print("FALSE or MAYBE =", btoa(t or m) );
13 print("not FALSE =", btoa(not f) );
14 print("not TRUE =", btoa(not t) );
15 print("not MAYBE =", btoa(not m) );
16
17 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")
18 {
19 l = atob(s);
61ad8a2b 20 echo("\"", s, "\"\tmeans ", btoa(l), EOL);
25a3f430 21 }
099b0ca0 22}
This page took 0.185375 seconds and 4 git commands to generate.