Parsers
October 9, 2023Parsers
October 9, 2023Parsers
Question 54
|
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 54 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 54 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.
Subscribe
Login
0 Comments