Talk in English - UK at php[world] 2019
Track Name:
Fairfax A
View Slides: https://www.slideshare.net/secret/zleH24m83UYbqV
Short URL: https://joind.in/talk/017ce
(QR-Code (opens in new window))
The 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)
Comments
Comments are closed.
Great job at making something I thought would be extremely complex very understandable. I also appreciate not just learning about what AST is but also why it might be useful to know and how I can apply it.
This was a great explanation. I really appreciated the clarity of the examples and there was just enough levity in the presentation style to make a potentially dry topic quite lively.
Writing a lexer and parser in a presentation? OK then. I learned a lot.
Very good insight how exactly PHP code parsing works.