gehaxelt / Python-LogicParser

Simple LogicParser in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple LogicParser in Python


Languages

Language:Python 100.0%