Lecture 15

Learning objectives

After this class, you should be able to:

  1. Define the following: simple or s-grammar, ambiguity (for grammars), and inherent ambiguity (for languages).
  2. Explain the following term: exhaustive or brute force parsing.
  3. Given a context free language, give a grammar for it.
  4. Given grammar, show that it is ambiguous.
  5. Given a language, give an s-grammar for it.
  6. Explain the difference between syntax and semantics of a programing language.

Reading assignment

  1. Sections 5.2, 5.3.
  2. Lecture 14-15 slides on Blackboard.
  3. Page 149.

Exercises and review questions


Last modified: 15 Jan 2014