Compiler-Design
January 26, 2024
Data-Structures
January 26, 2024
Compiler-Design
January 26, 2024
Data-Structures
January 26, 2024

GATE 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?
A
The go to part of both tables may be different.
B
The shift entries are identical in both tables.
C
The reduce entries in the tables may be different.
D
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.
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.

Leave a Reply

Your email address will not be published. Required fields are marked *