Skip to content

rifttech/boolean-expression-evaluator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boolean-expression-evaluator

Build Status

Unrary Operators

Operation name Operator Notation Precedence
Logical negation NOT 1

Binary Operators

Operation name Operator Notation Precedence
Logical conjunction AND 2
Logical disjunction OR 3
Logical nor NOR 3
Logical nand NAND 2
Exclusive disjunction XOR 3
Logical biconditional XNOR 4
Material implication IMPL 4
Converse implication CIMPL 4
Material nonimplication NIMPL 4
Converse nonimplication CNIMPL 4

Truth Tables

Logical Conjunction

TRUE TRUE TRUE
TRUE FALSE FALSE
FALSE TRUE FALSE
FALSE FALSE FALSE

Logical Disjunction

TRUE TRUE TRUE
TRUE FALSE TRUE
FALSE TRUE TRUE
FALSE FALSE FALSE

Logical NOR

TRUE TRUE FALSE
TRUE FALSE FALSE
FALSE TRUE FALSE
FALSE FALSE TRUE

Logical NAND

TRUE TRUE FALSE
TRUE FALSE TRUE
FALSE TRUE TRUE
FALSE FALSE TRUE

Logical XOR

TRUE TRUE FALSE
TRUE FALSE TRUE
FALSE TRUE TRUE
FALSE FALSE FALSE

Logical XNOR

TRUE TRUE TRUE
TRUE FALSE FALSE
FALSE TRUE FALSE
FALSE FALSE TRUE

Material Implication

TRUE TRUE TRUE
TRUE FALSE FALSE
FALSE TRUE TRUE
FALSE FALSE TRUE

Converse Implication

TRUE TRUE TRUE
TRUE FALSE TRUE
FALSE TRUE FALSE
FALSE FALSE TRUE

Material Nonimplication (Abjunction)

TRUE TRUE FALSE
TRUE FALSE TRUE
FALSE TRUE FALSE
FALSE FALSE FALSE

Converse Nonimplication

TRUE TRUE FALSE
TRUE FALSE TRUE
FALSE TRUE FALSE
FALSE FALSE FALSE

Code generation

You can generate parser with mvn clean compile command

  • use -Pjava maven profile (uses by default) for java
  • use -Pjs maven profile for javascript

About

Boolean Expression Evaluator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published