-
Which one of the following is a top-down parser?
-
- Recursive descent parser
- Operator precedence parser
- An LR (k) parser
- An LALR (k) parser
- Recursive descent parser
Correct Option: A
Top-down parsing is a technique to analyze unknown data relationship. This is done by hypothesizing general parser tree structures and then considering whether the known fundamental structures are compatible with the hypothesis that was made earlier. Recursive descent parser is a top down parser.