Reverse polish notation parser