Assume I have a condition in the form of "(a > b) OR (c < d)". How can I convert it to reverse polish notation and calculate it? I gave it a try by setting the "and/or" tokens at the lowest precedence level and got "a b c OR > d <". Is it right?
Basically I want to add conditional features to this implementation of the shunting yard algorithm; http://eddmann.com/posts/shunting-yard-implementation-in-java/