Original Post
One of my PHP scripts needs to interpret a small language. I don't want to write a parser for that language in PHP, and would rather like to generate a PHP parser automatically using a tool similar to YACC or Bison. Where can I find a similar tool, which generates PHP code? My google searches have mostly returned links to parsers that parse PHP from other languages, not parsers that parse other languages from PHP.