Tool for generating Truth Tables.
-
Make sure you have a rust toolchain installed (cargo and a rust compiler)
rustc --version cargo --version
-
Clone the repository:
git clone https://github.com/enix403/ttbl-rs.git
-
cd
into the root folder and run:cargo build --release # This above command might take some time to complete # Now start the program ./target/release/ttbl
Just enter valid boolean expression and press enter
p and q
p & (p or q)
!p1 | p2
a and FALSE
(hereFALSE
is the literal "false" and not a variable)
Wrap a valid subexpression in braces ({
and }
) to generate a separate dedicated column for the subexpression.
{p or q} and !(p and {!q})
!{a & {b or c}}