Talk in English - UK at ScotlandPHP 2018
View Slides: https://www.slideshare.net/asgrim1/climbing-the-abstract-syntax-tree-scotlandphp-2018
Short URL: https://joind.in/talk/25950 (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 are closed.
Good talk, I didn't know about the parser states before.
No fault of the presenter, but as a beginner I was lost...
Always love a talk that gets down and dirty behind the scenes in PHP. I would have liked to see some practicle demonstrations of the different ways of performing static analysis and enhancing code.
As always, very good.
My entire Uni course in compiler design flashed by in less than an hour. Where were you 30-odd years ago when I was given a syntax specification, an input source file, and the assignment "write a lexer, parser and compiler (in pascal !), and when done, run the source file and hand in the results"... ;-)
very interesting talk, especially in relation to the use of ASTs in userland. Thank you!
Always interested in learning the inner working of PHP. James is passionate about his subject of expertise and goes a good way of explaining.
A really interesting talk. Was great to hear a out something I didn't know about and to find out about some of the internals of php
Really good technical talk about the nuts and bolts of the PHP7 abstract syntax tree. A complex topic explained in a clear way.
Absolutely loved the talk. I can only wish there were more examples / ideas of how developers can use AST (as opposed to how it's being used in already existing libraries).