parser and lexer generators for PHP

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:

lemon-php.tgz JLexPHP-151.tgz

See enclosed README files for more information.

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.