Transform a notation from infix to postfix (reverse Polish).