Computer Sciences > GATE 2026 SET-2 > Compiler Design
Consider the canonical 𝐿𝑅(0) parsing of the grammar below using terminals {π‘Ž,𝑏,𝑐} and non-terminals {𝐴,𝐡,𝐢,𝑆} with 𝑆 as the start symbol.
S→𝐴𝐢𝐡
Aβ†’π‘Žπ΄ | πœ–
C→𝑐𝐢 | πœ–
B→𝑏𝐡 | 𝑏
Which one of the following options gives the number of shift-reduce conflicts that will occur in the 𝐿𝑅(0) ACTION table?
A
2
B
3
C
4
D
5

Correct : d

Similar Questions

Match the following according to input(from the left column) to the compiler phase(in the right column) that process it: (P)Syntax Tree (i)...
#168 MCQ
Consider the following code segment. x = u - t; y = x * v; x = y + w; y = t - z; y = x * y; The minimum number of total variables required to convert the abo...
#575 Fill in the Blanks
Consider the following grammar: stmt -> if expr then else expr; stmt | Ξ΅ expr -> term relop term | term term -> id | number id -> a | b | c number -> [...
#594 Fill in the Blanks

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......