some error checking for postfix expressions