Which one of the following is a top-down parser ?
Which one of the following is a top-down parser ? Correct Answer Recursive descent parser
The correct answer is option 1
Key Points
- A top-down parsing technique parses the input by starts constructing a parse tree from the root node moving down to the leaf nodes.
- A top-down parser uses the leftmost derivation to generate the string.
- A recursive descent parser is a top-down parser
Important Points
|
Parser |
Derivation |
|
LR parsers or Bottom-up Parsers |
Rightmost reverse Derivation |
|
LL parsers or Top-down Parsers |
Leftmost Derivation |
মোঃ আরিফুল ইসলাম
Feb 20, 2025