What are the four possible action of a shift_reduce parser

The four possible action of a shift_reduce parser

a) Shift action – the next input symbol is shifted to the top of the stack.
b) Reduce action – replace handle.
c) Accept action – successful completion of parsing.
d) Error action- find syntax error.

Leave a Reply