This post explains how to add a new Syntactic feature for PHP but better, it shows how they actually works and how the tokenization of PHP is done.
Even if you never do this, it is still a good reading: http://nikic.github.com/2012/07/27/How-to-add-new-syntactic-features-to-PHP.html
Amazon MP3 Store



