A compiler uses an abstract syntax tree (AST) as an intermediate representation of a program's structure, typically generated by the parser after syntax analysis. The AST captures