kmyacc based parser in PHP