Compiler-Design
January 26, 2024Data-Structures
January 26, 2024GATE 1992
|
Question 24
|
Consider the SLR(1) and LALR (1) parsing tables for a context free grammar. Which of the following statements is/are true?
|
The go to part of both tables may be different.
|
|
|
The shift entries are identical in both tables.
|
|
|
The reduce entries in the tables may be different.
|
|
|
The error entries in the tables may be different.
|
Question 24 Explanation:
Goto parts and shift entry must be same.
Reduce entry and error entry may be different due to conflicts.
Reduce entry and error entry may be different due to conflicts.
Correct Answer: D
Question 24 Explanation:
Goto parts and shift entry must be same.
Reduce entry and error entry may be different due to conflicts.
Reduce entry and error entry may be different due to conflicts.
