Go through your string left-to-right. If it's an operand, stack it, otherwise if it's an operator, perform it on the top two items on the stack and place the result back on the stack.
In reply to Re: Reverse Polish Notation Question
by Anonymous Monk
in thread RPN Question
by nat47
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |