PHP resources involving lexers

Interesting “thread”:http://www.sitepointforums.com/showthread.php?threadid=121246 on SitePoint about replacing HTMLSax’s parser with a lexer, and the speed increase gained. Can’t say I understood much of the code!

“SimpleTest”:http://www.lastcraft.com/simple_test.php, a PHP unit testing tool. I found it because it also contains a lexer and is mentioned in the above thread.

“WACT”:http://wact.sourceforge.net/ - the Web Application Component Toolkit. Looks like yet another framwork, but somewhere inside it is a lexer. Again, found through the SitePoint thread.

I did start reading O’Reilley’s book on Lex and Yacc a 5 months ago with the aim of using the knowledge gained in a PHP template engine (as it should be more efficient than regular expressions), but exams got in the way and I never got past the first chapter. And now others have got the same idea and are implementing it instead of me. Well, I guess it saves me some work, even if they, instead of me, get known for having the idea :-)

0 comments ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment