I want to evaluate a user entered string like the one below but how do I do that? I am not understanding how do I perform the arithematic operations maintaining the operators precedence.
Here's the problem :

34*45+56/(54*12)-25

some sort of like this.