Due: Friday, September 23, 2016, 10:00 am (start of the class)

Draw a concrete syntax tree and an abstract syntax tree (like the one in Figure 2.13 in the text) for each of the following problems, using the concrete syntax of Clite (Figure 2.7 in the text) and the abstract syntax of Clite (Figure 2.14 in the text).

  1. x = a + 1
  2. if (x > 0) x = 0

© 2016 Ying Li. Page last modified: .