An open API service indexing awesome lists of open source software.

https://github.com/candh/truth-table-generator

generates a truth table from a boolean expression
https://github.com/candh/truth-table-generator

axioms logic prepositions proofs truth truth-tables

Last synced: 7 months ago
JSON representation

generates a truth table from a boolean expression

Awesome Lists containing this project

README

          

challenge from last semester from a professor. i couldn't solve it then because i wasn't aware of the power of the stack.

works okay...
run with `-a ` to sort the operands alphabetically

- supports brackets also

things that you shouldn't do
- run with brackets that are not parentheses

operators are

`"=" BiConditional`,
`">" Implies`,
`"+" Or`,
`"&" And`,
`"~" Not`

all tests runs are confirmed by this
[http://turner.faculty.swau.edu/mathematics/materialslibrary/truth/](http://turner.faculty.swau.edu/mathematics/materialslibrary/truth/)

![outputscreen](https://i.imgur.com/W6CoLT5.png)