little progress...
[svn/Cll1h/.git] / demos / boolean.c
diff --git a/demos/boolean.c b/demos/boolean.c
new file mode 100644 (file)
index 0000000..838e31c
--- /dev/null
@@ -0,0 +1,11 @@
+#include "cll1.h"
+
+program
+{
+ boolean t=TRUE,f=FALSE;
+ printf("TRUE and FALSE = %s", bool_str(t and f) );
+ printf(",TRUE or FALSE = %s", bool_str(t or f) );
+ printf(",not FALSE = %s", bool_str(not f) );
+ printf(",not TRUE = %s\n", bool_str(not t) );
+}
This page took 0.085892 seconds and 4 git commands to generate.