Skip to content

Instantly share code, notes, and snippets.

@tausen
Created July 21, 2012 20:44
Show Gist options
  • Select an option

  • Save tausen/3157108 to your computer and use it in GitHub Desktop.

Select an option

Save tausen/3157108 to your computer and use it in GitHub Desktop.
Simple command-line truth table generator example output
$truthtable "A&(B+C)&~D"
Evaluating: A&(B+C)&~D
A B C D R
0 0 0 0 0
1 0 0 0 0
0 1 0 0 0
1 1 0 0 1
0 0 1 0 0
1 0 1 0 1
0 1 1 0 0
1 1 1 0 1
0 0 0 1 0
1 0 0 1 0
0 1 0 1 0
1 1 0 1 0
0 0 1 1 0
1 0 1 1 0
0 1 1 1 0
1 1 1 1 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment