I’ve been tinkering forever with parser generators; mostly to get behind how they work and what I can do with them.
A (long) while ago, I found myself in need for a Bison-like parser generator for PHP and there was none.
Hence, I present a port of Perl’s Parse::Yapp to PHP. The project is aptly called
Parse::Yapphp (Yet another parser [generator for] PHP).
Like its derived project, it’s still a Perl program, but produces PHP code. (PHP 7.3 -ish)
Get it here.