Shunting Yard Algorithm

Shunting yard algorithm is one of the methods for parsing mathematical expressiong in infix notation and producing a postfix notation string, also known as reverse Polish notation (RPN).

Only +, , ×, ÷, and ^ operators are supported. Negative numbers are not supported yet! You can also use *, /, and ** as ×, ÷, and ^ respectively.

Scroll left or right the window below to see the whole rail network.