Forum PHP 2017
[:fr]La parole est aux speakers : James Titcumb[:]
[:fr]Jusqu’au Forum PHP 2017, retrouvez nos interviews de speakers pour mieux comprendre leur parcours et le sujet qu’ils aborderont lors de leur conférence !
La conférence
Climbing the Abstract Syntax TreeThe new Abstract Syntax Tree (AST) in PHP 7 means the way our PHP code is being executed has changed. Understanding this new fundamental compilation step is key to understanding how our code is being run. To demonstrate, James will show how a basic compiler works and how introducing an AST simplifies this process. We’ll look into how these magical time-warp techniques* can also be used in your code to introspect, analyse and modify code in a way that was never possible before. After seeing this talk, you'll have a great insight as to the wonders of an AST, and how it can be applied to both compilers and userland code. (*actual magic or time-warp not guaranteed) |
How did you discover the PHP AST and what motivates you to talk about it during Forum PHP 2017?
I learnt about the the concept of an AST when Marco Pivetta (Ocramius) suggested we write a library using it to mimic the core reflection API in PHP but using AST instead. It prompted me to learn about lexers, parsers and so on, so my talk aims to help others learn about this really interesting topic.