This is a stack-based evaluator, that is, a calculator, which uses a self designed Stack data type. The input expression is in the infix form and is stored in a stack. The expression evaluator then evaluates expressions in O(n) time using an algorithm to convert an Infix expression into a Postfix expression. Software Design patterns, Command and Abstract Factory, are used to evaluate the postfix expression and to create the commands to execute the conversion from infix to postfix, respectively.
-
Notifications
You must be signed in to change notification settings - Fork 0
kaurjap/Calculator
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This is a stack-based evaluator, that is, a calculator that uses the stack data structure and performs calculation expression evaluations in O(n) time.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published