truth-table

Crates.iotruth-table
lib.rstruth-table
version0.2.0
sourcesrc
created_at2021-06-15 13:07:20.673348
updated_at2021-07-30 09:16:56.411977
descriptionGenerate a truth table from a formula
homepage
repositoryhttps://github.com/elias1004/truth-table
max_upload_size
id410442
size23,967
(Elias1004)

documentation

https://docs.rs/truth-table

README

This is a very simple command-line tool to generate a truth table based on a given boolean expression.

Examples

$ truth-table "a or b"
a b | a∨b
0 0 | 0
0 1 | 1
1 0 | 1
1 1 | 1
$ truth-table "(a or b) -> c"
a b c | (a∨b)→c
0 0 0 | 1
0 0 1 | 1
0 1 0 | 0
0 1 1 | 1
1 0 0 | 0
1 0 1 | 1
1 1 0 | 0
1 1 1 | 1
Commit count: 0

cargo fmt