in Compiler Design edited by
4,063 views
1 vote
1 vote

Shift-reduce parser consists of

  1. input buffer
  2. stack
  3. parse table

Choose the correct option from those given below:

  1. a and b only
  2. a and c only
  3. c only
  4. a, b and c
in Compiler Design edited by
by
4.1k views

2 Answers

2 votes
2 votes

SR parser is a form of bottom up parsing in which a stack holds grammar symbols and an input buffer holds the rest of the string to be parsed.

option a) stack and input buffer.

reference: 1) https://en.wikipedia.org/wiki/Shift-reduce_parser

                   2) https://www.geeksforgeeks.org/shift-reduce-parser-compiler/

0 votes
0 votes
SR parser is a bottom-up parser. It consists of an input buffer, stack, and parse table. The input buffer is used for storing strings to be parsed, the stack is used for holding grammar symbols, and the parse table is used for parsing the string.
 

Option D
Answer:

Related questions