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

Related Questions

Assume that the SLR parser for a grammar G has n1 states and the LALR parser for G has n2 states. Hence which one is true?
Assume that the SLR parser for a grammar G has n1 states and the LALR parser for G has n2 states.
Which one of the following is a top-down parser?
Which of the following is the fastest JavaScript parser?
Which of the following encoding an XML parser assumes ?