

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Professor: Weimer; Class: Programming Languages; Subject: Computer Science; University: University of Virginia; Term: Spring 2008;
Typology: Study notes
1 / 3
This page cannot be seen from the preview
Don't miss anything!


We should practice.
Consider the following LR(0) grammar (borrowed from my recent CS 671 home- work), with terminals {− ( )}:
Let’s work out the DFA for this on the board. We begin by adding a new start symbol, S′, to our grammar...
The first state might look like:
How do we do the rest?
That was fun. Next up: let’s make a parsing table from that DFA. (note: