What is an AST transformation?

Aravinth picture Aravinth · Jun 4, 2011 · Viewed 12.9k times · Source

What is an AST transformation in general? I came across these words when reading Groovy blog's. But what it is in general?

Answer

Markus picture Markus · May 12, 2014

AST means Abstract Syntax Tree, which is basically an abstract representation of code / any syntactic structure. A transformation is an action modifying this tree (i.e. transforming the existing AST to a new AST). For more information have a look here: http://en.wikipedia.org/wiki/Abstract_syntax_tree