Computer Science 433
Programming Languages

Fall 2014, The College of Saint Rose

Lecture 3: Syntax and Semantics
Date: Wednesday, September 3, 2014

Agenda

Lecture 3 Assignment

Due at the start of class, Monday, September 8.

Please submit answers to these questions in Submission Box under "LA3" or in hard copy by the start of our next class. We will discuss these questions at the start of class, so no late submissions are accepted. Please be sure that your name is clearly indicated in all submissions.

The readings for next class are Sebesta Chapter 3.

Given this grammar:

<assign> => <var> = <expr>
   <var> => A | B | C | D
  <expr> => <var> + <expr>
          | <var> * <expr>
          | ( <expr> )
          | <var>

show both leftmost and rightmost derivations for the following sentences. If a sentence is in the language (not all are), just show the derivation up to the point that you can no longer proceed. (3 points each)

Terminology