nomemory / andreinc-site

My personal blog
10 stars 4 forks source link

2010/10/05/converting-infix-to-rpn-shunting-yard-algorithm #7

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Converting infix to RPN (shunting-yard algorithm) | andreinc

The shunting-yard algorithm implemented in Java.

https://www.andreinc.net/2010/10/05/converting-infix-to-rpn-shunting-yard-algorithm

randymedd commented 2 years ago

Very minor quibble, but the code in Operators.java does not match the fragment shown at https://www.andreinc.net/2010/10/05/converting-infix-to-rpn-shunting-yard-algorithm#the-operators, specifically the associativity specification for subtraction. Doesn't seem to affect how the code works, however.