All mock tests are FREE till 31 December — register to save your progress

Shift-reduce parser consists of

(a) input buffer

(b) stack

(c) parse table

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. (a), (b) and (c)

Explanation

A shift-reduce (LR) parser uses an input buffer, a stack and a parsing table.

More Theory of Computation and Compilers questions