

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
Practice problems related to parsing techniques, including bottom-up parsing, lr parsing, lalr parsing, and various grammar examples. Topics covered include the difference between bottom-up and top-down parsing, handle definition, right-most derivations, lr(k) items, shift/reduce conflicts, and lalr(1) parsing.
Typology: Exams
1 / 2
This page cannot be seen from the preview
Don't miss anything!


CMSC 430, Practice Problems 2
a. Find all shift/reduce and reduce/reduce conflicts. List the LR(1) items and lookaheads causing conflicts. b. What states would be merged in a LALR(1) parser? c. Are any new reduce/reduce conflicts introduced in the LALR(1) parser? d. Explain why LALR(1) parsers will not introduce new shift/reduce conflicts. e. What is the relationship between LALR(1) and SLR(1) parsers?