Home » Compiler Design » Compiler design miscellaneous » Question

Compiler design miscellaneous

  1. Which one of the following is a top-down parser?
    1. Recursive descent parser
    2. Operator precedence parser
    3. An LR (k) parser
    4. An LALR (k) 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.



Your comments will be displayed only after manual approval.