Consider the following grammar: S′ → S S → SS | a | ε Construct the collection…

PYQ GATE 1988Modified — slightly modified from the official paper; see the solution

Consider the following grammar:

S′ → S

S → SS | a | ε

Construct the collection of sets of LR(0) items for this grammar and draw its goto graph.

Sign up free to check your answer

Sign up free

Explore the full course: Compiler Design

Loading lesson…