Schmalls » Blog » 2008 » August 2008

August 2008

A Pluggable Preprocessor for PHP

After reading Stan Vassilev's post on Practical Uses for the PHP Tokenizer, I got to thinking about his example of a preprocessor. It makes a lot of sense for the library developer. They could easily create multiple versions of their code depending on PHP version, target platform, backend database, etc. So I started working on my own implementation of a preprocessor with the goal of making it easy to add plugins for additional functionality. It was during the construction of the core of the preprocessor, that it hit me: why can't we implement new language features in the preprocessor. The first things that came to mind for me were traits and scalar type hints. So without further ado, I present version 0.1.0-dev of PPP (with its own doubly recursive meaning: PPP PHP PreProcessor).

→ Read more...

2008-08-31 10:37 · Josh Thompson · 0 Comments · 0 Linkbacks
blog/2008/08/home.txt · Last modified: 2009-09-19 22:25 by Josh Thompson