Archive for the ‘AST’ Category

ReactJS in PHP: Writing Compilers Is Easy and Fun!

Posted on: No Comments
I used to use an extension called XHP. It enables HTML-in-PHP syntax for generating front-end markup. I reached for it recently, and was surprised to find that it was no longer officially supported for modern PHP versions. So, I decided to implement a ...

How PHP Executes – from Source Code to Render

Posted on: No Comments
Inspired by a recent article on how Ruby code executes, this article covers the execution process for PHP code. Introduction There's a lot going on under the hood when we execute a piece of PHP code. Broadly speaking, the PHP interpreter goes through ...

Understanding ASTs by Building Your Own Babel Plugin

This article was peer reviewed by Tim Severien. Thanks to all of SitePoint's peer reviewers for making SitePoint content the best it can be! Every day, thousands of JavaScript developers use versions of the language that browser vendors haven't even im...