Skip to content

This Project converts infix expressions to postfix and evaluates postfix expressions!

License

Notifications You must be signed in to change notification settings

arslanbilal/Infix-Postfix-Evaluation

Repository files navigation

Infix-Postfix-Evaluation

This Project converts infix expressions to postfix and evaluates postfix expressions!

Operations class include below useful functions:

1) checkTheEvaluation(String) -> Bool
checking the evaluation if there is a syntax error. For instance bracket and number control.
(A+B)+C returns true
(A+B)+C) returns false - bracket mistake
(AB+C)*D returns false - number mistake

2) infixToPostfixEvaluation(String) -> String
evaluate the infix string equation to postfix equation.

3) postfixEvaluate(String) ->Double
returns result of postfix equation.

About

This Project converts infix expressions to postfix and evaluates postfix expressions!

Topics

Resources

License

Stars

Watchers

Forks

Languages