tags:

views:

58

answers:

1

I'm looking for a PHP library that provides similar functionality to PyParsing, a simple but powerful parsing engine for Python. Does anyone have a suggestion? I want create a wiki-syntax parsing and a search expression parsing without re-inventing the wheel...

Thanks

+1  A: 

Probable duplicate of http://stackoverflow.com/questions/1003923/flex-bison-like-functionality-within-php

LIME Parser Generator for PHP:

Complete LALR(1) parser generator and engine (like BISON or YACC) but it's all done in PHP, and the input grammar is easier and more maintainable. Write your actions in PHP. Generate PHP output code. Drive your parser with PHP. Wanna make a language?

Bill Karwin