Exams › GATE › Technical
Which one of the following is a top-down parser?
- Recursive descent parser.
- Operator precedence parser.
- An LR(k) parser.
- An LALR(k) parser.
Correct answer: Recursive descent parser.
Solution
Recursive descent parsing is a classic top-down parsing technique. The other listed parsers are bottom-up or shift-reduce based methods.
Related GATE Technical questions
⚔️ Practice GATE Technical free + battle 1v1 →