Mar-23-2021, 05:49 PM
If this is homework, wouldn't the homework part be figuring out how to evaluate the equation? Splitting the equation into tokens, identifying which tokens are operators and which are numbers. Evaluating the equation starting with the first token and ending with the last. An interesting, but not not terribly difficult challenge.