Transforming PHP
summary
Shows how to add concrete syntax to PHP by building real tools: a simple JSX-like compiler, a 30-line pipe macro, and a set of macros using the token-based library yay plus a preprocessor called pre. Demonstrations compile into valid PHP (formatted with PHP CS Fixer), power a no-JavaScript to‑do example, and implement async/await, shorter arrow closures, and property getters. Integration works but tooling and docs remain sparse and debugging maps to the generated PHP.
AI-written summary · about








