Assignment 2: Introduction to Parsing
Due: 10/23/03
| < S > |
| a | ( < T > ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < T > |
| < T > , < S > | < S > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
.
| < stmt > |
| if < expr > then < stmt > end | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| | | if < expr > then < stmt > else < stmt > end | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(Global hint: If the grammar you produce for either of these exercises
has more that 10 productions you are working much harder than you need
to.)