ahmed-alllam / AlphaLogos

Boolean Function Analyzer and Synthesis Optimization Tool
http://alpha-logos-1464863388.eu-west-3.elb.amazonaws.com/
MIT License
1 stars 0 forks source link

Truth table generator #6

Closed MohamedEbrahem1 closed 11 months ago

MohamedEbrahem1 commented 11 months ago

Is your feature request related to a problem? Please describe. The issue is to show the truth table. Describe the solution you'd like

  1. make a function evaluateExpression that evaluates any Boolean expression
  2. make a function replaceVariables that takes the expression and changes the values of the variables to 0s and 1s
  3. make a function expressionIterator to traverse all possible combinations of Logic.
  4. iterate over all possible combinations to generate the truth table