Which of the following statements is false?

Which of the following statements is false?
A. Left as well as right most derivations can be in Unambiguous grammar
B. An LL (1) parser is a top-down parser
C. LALR is more powerful than SLR
D. Ambiguous grammar can’t be LR (k)
 
Answer: a
Explanation: If a grammar has more than one leftmost (or rightmost) derivation the grammar is ambiguous. Sometimes in unambiguous grammar the rightmost derivation and leftmost derivations may differ.
 

Tìm kiếm

Back
Top