Does Scala provide an easy way to convert Infix expressions to postfix ones?

1k views Asked by At

I a beginner in Scala and I am writing a program in Scala to convert infix arithmetic expression to the postfix one meanwhile wondering whether Scala provided an easier way to handle these kind of conversions. Can anyone guide me if there is any easier way for it?

1

There are 1 answers

0
Eduardo On BEST ANSWER

A way to do it is to use Dijkstra's Shunting Yard algorithm. Here is one implementation in Scala.