Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expression evaluation #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

arajhansa
Copy link

I've added an uitility to evaluate expressions. It can now handle the operations along with brackets. I've used Postfix evaluation and Infix to Postfix conversion.

With new code, I've refactored to remove redundant code as well.

I've not worked around in bracket evaluation (i.e for input 3(6), the answer would be 36 and not 18). This is related issue in Infix to Postfix conversion. It can be worked around. I'll update it in next PR.

@arajhansa arajhansa mentioned this pull request Oct 8, 2019
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