Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

pavas23/Logical-Framework

Repository files navigation

Logical-Framework

2-1, CS-F214, Logic in CS Assignment. We have to make a framework which reads a propositional logic formula and evaluate and print its truth table

Functions

  • Write a function to convert the infix propositional logic expression into a prefix propositional logic expression.
  • Write a function to convert the prefix expression into a rooted binary parse tree.
  • Write a function to traverse the parse tree to output the infix expression back by in-order traversal of the parse tree.
  • Write a function to compute the height of a parse tree.
  • Write a function to evaluate the truth value of a propositional logic formula, given the truth values of each propositional atom by traversing the tree in a bottom up fashion.

Tech Stack

  • C++
  • Doxygen

Installation

  run doxygen in terminal
  navigate to html folder
  open index.html

Screenshots

Output

heapgraph

gprof2

Output

Authors

Releases

No releases published

Packages

No packages published

Languages