Which of the following parsers is a type of bottom-up parser?

2025

Which of the following parsers is a type of bottom-up parser?

  1. A.

    Predictive parser

  2. B.

    Recursive Descent

  3. C.

    LL(1) parser

  4. D.

    LR parser

Attempted by 57 students.

Show answer & explanation

Correct answer: D

LR parsers are bottom-up. They build parse trees from leaves to root, handling shift-reduce actions.

Explore the full course: Niacl Ao It Specialist