Simple LogicParser in Python
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
logicparser.py

README.md

Python - LogicParser

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
  • ->
  • <->