SYNTAX ANALYSIS
ERROR RECOVERY IN SYNTAX ANALYSIS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
In shift action the input symbol is ____
|
Shifted to the stack
|
|
Reduced with non terminal
|
|
Both A & B
|
|
None
|
Explanation:
Detailed explanation-1: -Leftmost Derivation. Therefore shift-reduce parsing can also be called the reverse of the Right Most Derivation.
Detailed explanation-2: -Shift reduce parser is a type of bottom-up parser. It uses a stack to hold grammar symbols. A parser goes on shifting the input symbols onto the stack until a handle comes on the top of the stack. When a handle occurs on the top of the stack, it implements reduction.
Detailed explanation-3: -Sift reduce parsing performs the two actions: shift and reduce. At the shift action, the current symbol in the input string is pushed to a stack. More items
There is 1 question to complete.