This is a simple logic parser in python. It will parse and evaluate your logic term.
###Usage###
There are two ways of using this python script:
-
passing the term as a parameter
python2.7 ./logicparser.py "(T and F)"
-
giving the term when the script asks for it
python2.7 ./logicparser.py
Enter logic term: (T or F)
###Operations###
The following operations are implemented:
- not
- or
- and
- xor
- ->
- <->