






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
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
LR parser answers to lr parsers
Typology: Summaries
1 / 10
This page cannot be seen from the preview
Don't miss anything!
CS143 Handout 11 Summer 2012 July 9st, 2012
Handout written by Maggie Johnson and revised by Julie Zelenski.
T –> (E) | id | id[E]
E' -> •E E -> •E + T E -> •T T -> •(E) T -> •id T -> •id[E]
T -> id• id T -> id•[E]
L –> id R –> L
I 0 : S' –> •S I 5 : L –> id• S –> •L = R S –> •R I 6 : S –> L =•R L –> •R R –> •L L –> •id L –> •R R –> •L L –> •id
I 1 : S' –> S• I 7 : L –> *R•
I 2 : S –> L• = R I 8 : R –> L• R –> L• I 9 : S –> L = R• I 3 : S –> R•
I 4 : L –> •R R –> •L L –> •R L –> •id
A –> X 1 ...Xi • Xi+1...Xj , a
A –> X 1 …Xj •, a
X –> •aX, a/b X –> •b, a/b
I 1 : S' –> S•, $
I 2 : S –> X•X, $ X –> •aX, $ X –> •b, $
I 3 : X –> a•X, a/b X –> •aX, a/b X –> •b, a/b
I 4 : X –> b•, a/b
I 5 : S –> XX•, $
I 6 : X –> a•X, $ X –> •aX, $ X –> •b, $
I 7 : X –> b•, $
I 8 : X –> aX•, a/b
I 9 : X –> aX•, $