In general, you translate expressions, as shown in Chapter 2, The Structure of a Compiler. The only interesting part is…