In this article Alessandro provides an overview of Abstract Syntax Trees (ASTs), introduces a few use-cases, and showcases the ast module in the Python Standard Library. The content is structured in a top-down fashion, starting from general notion about an AST, and digging deeper up to the point of artificially manipulating an AST to “randomize” the content of some instructions.
Alessandro Finamore
Alessandro is a principal engineer at the HUAWEI research center in Paris, working on the integration AI technologies into high-speed network monitoring systems. For more info, check his website