I\'m looking for a way to get Flex/Bison (or Lex/Yacc, et. al.) support in PHP. Specifically, I\'m implementing a boolean query parser in a web UI and would rather keep all ope
Have you tried looking at PEG parser generators in PHP: https://github.com/maetl/php-peg ?
Or a parser combinator approach: http://qntm.org/locoparser ?