Parsers
October 9, 2023UGC NET CS 2006 Dec-paper-2
October 9, 2023APPSC-2012-DL-CS
Question 6 |
Which of the following statements is false?
An unambiguous grammar has the same leftmost and rightmost derivation | |
An LL(1) parser is a top-down parser | |
LALR is more powerful than SLR | |
An unambiguous grammar can never be LR(k) for any k |
Question 6 Explanation:
1 is false because unambiguous grammar need not have the same leftmost and rightmost derivation.
4 is false because the correct statement is an ambiguous grammar can never be LR(K) for any k.
4 is false because the correct statement is an ambiguous grammar can never be LR(K) for any k.
Correct Answer: D
Question 6 Explanation:
1 is false because unambiguous grammar need not have the same leftmost and rightmost derivation.
4 is false because the correct statement is an ambiguous grammar can never be LR(K) for any k.
4 is false because the correct statement is an ambiguous grammar can never be LR(K) for any k.