doc-src/Tutorial/Ifexpr/bool2if
author wenzelm
Fri, 21 May 2004 21:26:19 +0200
changeset 14790 0d984ee030a1
parent 5377 efb799c5ed3c
permissions -rw-r--r--
major cleanup of tsig datastructures and extend/merge operations; fixes old bugs in classes/arities code; proper treatment of nonterminals and syntax-only types;

consts bool2if :: boolex => ifex
primrec
"bool2if (Const b) = CIF b"
"bool2if (Var x)   = VIF x"
"bool2if (Neg b)   = IF (bool2if b) (CIF False) (CIF True)"
"bool2if (And b c) = IF (bool2if b) (bool2if c) (CIF False)"