Due: Friday, September 22, 2017, 11:00 am (Session A) 1:00 pm (Session B) (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;

© 2017 Ying Li. Page last modified: .