Skip to content

Feat/truth table generator#44

Merged
weiseng18 merged 51 commits intodevelopfrom
feat/truth-table-generator
Aug 16, 2021
Merged

Feat/truth table generator#44
weiseng18 merged 51 commits intodevelopfrom
feat/truth-table-generator

Conversation

@weiseng18
Copy link
Copy Markdown
Owner

@weiseng18 weiseng18 commented Aug 15, 2021

Problem

Want to generate the truth table for a given mathematical logic expression, such as (p => q) => r.

Solution

Primary work:

  • Create Tokenizer to split an expression into its tokens
  • Create SyntaxTree to convert the tokens into a SyntaxTree, and to help evaluate a logic expression given the boolean values for each variable
  • Create TruthTableGenerator to help generate enumerate all possibilities
  • Create frontend page to display query and result

Refactoring/chores:

  • Create BadRequest class that extends from HttpException
  • Edit tsconfig.json to cause error on unused variables/imports
  • Create frontend/ folder to store frontend related non-page files

Checklist

  • If the branch was not created off latest develop, merge locally
  • Using latest develop and master, do git diff --stat master while in develop branch. Ensure that the diff is not too large

Notes

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 15, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/weiseng18/math/BBgNWRtj1SYtQFs4iMHbmW7fXaH1
✅ Preview: https://math-git-feat-truth-table-generator-weiseng18.vercel.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant