parser and lexer generators for PHP
From time to time, it is needed to put a parser together. Most of the time it is needed to do this in C for performance, but other times just something convenient, like PHP, and have been out of luck is wanted.
Adapt lemon to optionally emit PHP code, and likewise with JLex.
You need a C compiler to build lemon and a java compiler and runtime to build and run JLexPHP, but after having translated your .y and .lex files with these tools, you’re left with a pure PHP parser and lexer implementation.
The parser and lexer generators are available under a BSDish license:
See enclosed README files for more information.
