Skip to content

nick-ivanov/nnlogic

Repository files navigation

 _   _  _   _  _                    _
| \ | || \ | || |                  (_)
|  \| ||  \| || |      ___    __ _  _   ___
| . ` || . ` || |     / _ \  / _` || | / __|
| |\  || |\  || |____| (_) || (_| || || (__
\_| \_/\_| \_/\_____/ \___/  \__, ||_| \___|
                              __/ |
                             |___/
Creative approach to logic expression parsing

NNLogic

NNLogic is logic expression parser and truth table builder that uses non-traditional (and more efficient!) way of parsing.

Copyright and License

Copyright (C) 2014-2016 Nick Ivanov NNLogic is distributed under the terms of GNU GPL v.3

Installation

NNLogic is written in Python, which means that all you need is the source code and a proper version of Python interpreter. NNLogic needs Python 3.x. If Python 3.x is not installed in your system, you can download it from here:

https://www.python.org/downloads/

When Python 3.x is installed, download and unpack (if zipped or archived) the source code of NNLogic. You can use this link:

https://github.com/nick-ivanov/nnlogic/archive/master.zip

Run NNLogic

In order to run NNLogic, run a terminal, change current directory to the one with NNLogic source files, and run either of the following two files using python3:

  • nnlogic.py -- CLI interface of NNLogic;
  • nnlogic_gui.py -- GUI (Tkinter) version of NNLogic.

For example, if you are using Linux, and the directory with NNLogic is /home/johndoe/programs/nnlogic, the following commands will run the GUI version of the program:

cd /home/johndoe/programs/nnlogic
python3 nnlogic_gui.py

Or you may want to use a single command:

python3 /home/johndoe/programs/nnlogic/nnlogic_gui.py

Using NNLogic

Main Window

This is how the main window looks like:

NNLogic Main Window

Processing an Expression

In order to parse an expression and build a truth table for it, just type it in the purple box and click "Process":

NNLogic Processing an Expression

About

Logic expression parser and truth table builder

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages