Skip to content
bshmanairPublic

About

Truth table generator

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

Truth Table Generator

A modular C++ tool designed to parse complex boolean expressions and generate complete truth tables. The project utilizes the Shunting-Yard algorithm for postfix conversion, as well as a stack-based evaluator to compute results for all variable combinations.

In other words, it's a truth table generator!

Features

  • Variable Detection: Automatically generates all unique variables (A-Z) within an expression.
  • Dynamic Table Generation: Calculates 2^n rows for n unique variables.
  • All boolean operators supported
  • Full support for nested parentheses ()

Build Instructions

This project requires CMake, Ninja and GNU Makefile to run.

If you've installed, just run

make run

and you're set! 👍

About

Truth table generator

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages