项目作者: arslanbilal

项目描述 :
This Project converts infix expressions to postfix and evaluates postfix expressions!
高级语言: Swift
项目地址: git://github.com/arslanbilal/Infix-Postfix-Evaluation.git
创建时间: 2014-10-14T08:49:35Z
项目社区:https://github.com/arslanbilal/Infix-Postfix-Evaluation

开源协议:MIT License

下载


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.