Skip to content

A stupid utility to parse boolean formulas and print thruth tables for me in university.

Notifications You must be signed in to change notification settings

Dico200/boolean-formula-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

boolean-formula-parser

A stupid utility to parse boolean formulas and print thruth tables for me in university.

Examples:

¬X

X|(¬X)
0|1
1|0

Y ← X

Y|X|(Y←X)
0|0|1
1|0|1
0|1|0
1|1|1

X → Y

X|Y|(X→Y)
0|0|1
1|0|0
0|1|1
1|1|1

Z → ¬X

Z|X|(Z→¬X)
0|0|1
1|0|1
0|1|1
1|1|0

(X → Y) v (Z → ¬X)

X|Y|Z|((X→Y)v(Z→¬X))
0|0|0|1
1|0|0|1
0|1|0|1
1|1|0|1
0|0|1|1
1|0|1|0
0|1|1|1
1|1|1|1

A ^ (B v ¬C)

A|B|C|(A^(Bv¬C))
0|0|0|0
1|0|0|1
0|1|0|0
1|1|0|1
0|0|1|0
1|0|1|0
0|1|1|0
1|1|1|1

A ^ B v ¬C

A|B|C|(A^Bv¬C)
0|0|0|1
1|0|0|1
0|1|0|1
1|1|0|1
0|0|1|0
1|0|1|0
0|1|1|0
1|1|1|1

About

A stupid utility to parse boolean formulas and print thruth tables for me in university.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages