Smart design of a math parser?

A pretty good approach would involve two steps. The first step involves converting the expression from infix to postfix (e.g. via Dijkstra’s shunting yard) notation. Once that’s done, it’s pretty trivial to write a postfix evaluator.

Leave a Comment