Lecture 15
Learning objectives
After this class, you should be able to:
- Define the following: simple or s-grammar, ambiguity (for grammars), and inherent ambiguity (for languages).
- Explain the following term: exhaustive or brute force parsing.
- Given a context free language, give a grammar for it.
- Given grammar, show that it is ambiguous.
- Given a language, give an s-grammar for it.
- Explain the difference between syntax and semantics of a programing language.
Reading assignment
- Sections 5.2, 5.3.
- Lecture 14-15 slides on Blackboard.
- Page 149.
Exercises and review questions
- Exercises and review questions on current lecture's material
- Section 5.2, exercise #2.
- Section 5.2, exercise #6.
- Section 5.2, exercise #7.
- Section 5.2, exercise #9.
- Section 5.2, exercise #17.
- Section 5.3, exercise #1 b.
- Questions on next lecture's material
- What is a normal form for a grammar?
Last modified: 15 Jan 2014