CSCI 310 Day 15
- Administrivia
- Reminder: gary leaves town next Wednesday evening,
through sunday. Project 3 demo target is the monday he
gets back.
- Project 3 questions
- Homework 2 questions.
- SLR parsers vs. LR(1) parsers vs. LALR(1) parsers
- back to our favorite
grammar including a table and
states -- Fix by calculating the follow sets.
- But how about this grammar with
these issues? (Check Follow(E->V)...)
- LR(1): (A -> alpha . beta, x) means
alpha on stack, head of input is in First(beta x).
(as opposed to LR(0): (A -> alpha . beta) alpha on stack,
and beta possible.)
Walk through construction of a couple of states...
- LALR(1) merge some states where possible (see p. 65).
Gary Lewandowski
Last modified: Fri Feb 18 10:09:07 EST 2005