COMPILER DESIGN

TOOLS AND TECHNIQUES FOR COMPILER DESIGN

MISCELLENOUS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following statement is/are correctA:Canonical LR is powerful than LL(1)B:LL(4) is powerful than LL(2)C:SLR is more powerfull than Canonical LR
A
A and B
B
A, B and C
C
A and C
D
A only
Explanation: 

Detailed explanation-1: -True, Canonical LR parser is more powerful than LALR parser.

Detailed explanation-2: -Among all the parsers Canonical LR (CLR) parser is most power full than other parsers. Explanation: From above order we can say that CLR is the most power full parser, hence option 3 is the correct answer.

Detailed explanation-3: -The LALR(1) parser is less powerful than the LR(1) parser, and more powerful than the SLR(1) parser, though they all use the same production rules.

There is 1 question to complete.