Professional Documents
Culture Documents
CD Assignment Unit2
CD Assignment Unit2
Name:
Compiler Design 18CS73
USN:
Assignment (Unit 2)
4. Construct DFA & LR(0) table with the LR(0) item set 2
for the grammar below.
S → AA
A → aA | b
5. Consider the grammar 2
S –> S + S
S –> S * S
S –> id
Perform Shift Reduce parsing for input string “id + id +
id”. Show the stack moves.