parser for an prefix calculator