CS 1104 Introduction to Computer Science

COMPILERS AND TRANSLATORS

 

POST-CLASS ACTIVITY

Using the previously defined syntactic specification for <expr>, derive the complete syntactic tree for the expressions:

x + y + z
x * y + z
x + y * z
(z)
(x + y)
w * (x)

(This is an exercise that does NOT need to be handed-in!)


Then follow through the samples, free-use, and assessment activities.

Prev[TOC]

Last updated 2001/11/06
© J.A.N. Lee, 2000-2001.