Which statements is true?
- A. LALR parser is more powerful and costly as compare to other parsers
- B. All CFG's are LP and not all grammars are uniquely defined
- C. Every SLR grammar is unambiguous but not every unambiguous grammar is SLR
- D. LR(k) is the most general back tracking shift reduce parsing method
Answer: C. Every SLR grammar is unambiguous but not every unambiguous grammar is SLR
Explanation: SLR is a subset of unambiguous grammars. Not all unambiguous are SLR.