An abstract syntax tree (or AST) is the representation of source code structure that a compiler uses internally.