Skip to content

ebracho/Boolean_Expression_Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Boolean Expression Interpreter

####To run: $ python bei.py

####Evaluate Expression

> x=true
> y=false
> x and y
False

####Compare Expressions

> cmpr (x and y) or (x and z) | x and (y or z)
Equivalent

####Create Truth Table

> tt x or y
+------------------------+
|   x   |   y   | x or y |
|------------------------|
| True  | True  |   True |
|------------------------|
| True  | False |   True |
|------------------------|
| False | True  |   True |
|------------------------|
| False | False |  False |
+------------------------+

####Exit REPL > q

####Operator precedence is not implemented correctly at moment so clear ambiguities with parenthesis

About

Evaluate, simplify, and compare Boolean expressions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages