StreakPeaked· Practice

ExamsGATETechnical

Which of the following is/are Bottom-Up Parser(s)?

  1. Shift-reduce Parser
  2. Predictive Parser
  3. LL(1) Parser
  4. LR Parser

Correct answer: Shift-reduce Parser

Solution

The Shift-reduce Parser is a type of bottom-up parser that builds the parse tree from the leaves (input symbols) up to the root (start symbol) by shifting input symbols onto a stack and reducing them to non-terminals according to production rules.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →