reverse polish notation parser