Question: In an LR parser, what is the purpose of the \'shift\' action?
Options:
Correct Answer: To push a state onto the stack.
Solution:
The \'shift\' action in an LR parser moves the next input symbol onto the stack and transitions to a new state.