Syntax-Directed Translation • Grammar symbols are associated with attributes to associate information with the programming language constructs that they represent. •…