Which one of the following is TRUE at any valid state in shift-reduce parsing?
GATE · 2015 · CS · Set 1 · Computer Science & IT
Which one of the following is TRUE at any valid state in shift-reduce parsing?
- A.
Viable prefixes appear only at the bottom of the stack and not inside
- B.
Viable prefixes appear only at the top of the stack and not inside
- C.
The stack contains only a set of viable prefixes
- D.
The stack never contains viable prefixes
Attempted by 76 students.
Show answer
Correct answer: C
The worked solution is available to enrolled students.
Video solution available to enrolled students.
Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lesson…