Which one of the following is a top-down parser?

Which one of the following is a top-down parser?
A. Recursive descent parser
B. Operator precedence parser
C. An LR(k) parser
D. An LALR(k) parser
 
Answer: a
Explanation: Recursive Descent also known as top down parsing also known to be LL(1).
Consider the following two statements:
P: Every regular grammar is LL(1)
Q: Regular is LR(1) grammar.
 

Tìm kiếm

Back
Top