Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

fxfwn/LTTG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 

Repository files navigation

LTTG

LTTG, or Logic Truth Table Generator is a CLI tool that generates truth tables for boolean algebra with logic gates from a given scheme. The tool is written in Python.

⚠️ NOTE: The development of this utility has was ceased and the repository is archived to focus on other projects and due to lack of new notable new features to add. Instead, a reinterpretation of LTTG as a microlanguage is being worked on under the name "TBAL", which can be found here.

How it works

LTTG takes a boolean expression, parses it with tokenization and then generates a truth table based on the expression. LTTG also accounts for De Morgan's Laws and also prints corresponding expression simplifications.

The input should look similar to this:

(a OR b) AND (c OR d)

Input Syntax

This tool supports the following logic operators:

  • AND
  • OR
  • NOT

Unsupported Operators

For unsupported operators like XOR, NAND, and NOR, you can rewrite them using AND, OR, and NOT:

  • a XOR b(a AND NOT b) OR (NOT a AND b)
  • a NAND bNOT (a AND b)
  • a NOR bNOT (a OR b)

About

A CLI tool to convert Boolean expressions into logic truth table.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors