slides/internals/ast1.xml
Abstract Syntax Tree
12/50
Abstract Syntax Tree
Abstract Syntax Tree
  • • An AST describes the structure of the parsed script
  • • Each node is a language construct
  • • Nested structures are represented through a tree
  • • Not all the original information from the original source code is kept
  • • The php-ast extension on Nikita Popov's (nikic) GitHub account can visualize them
  • • Optimisations are possible by modifications of the tree