Reverse Polish notation parser