parser for expressions recorded in the Polish notation