TOOLS AND TECHNIQUES FOR COMPILER DESIGN
MISCELLENOUS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which action remove handle from stack and push its corresponding Non terminal?
|
Shift
|
|
Reduce
|
|
Accept
|
|
Error
|
Explanation:
Detailed explanation-1: -To do so, bottom-up parsing tries to find a rightmost derivation of a given string backwards. Bottom-up parsing is also called shift-and-reduce parsing where. shift means read the next token, reduce means that a substring matching the right side of a production A.
Detailed explanation-2: -What is handle pruning? This describes the process of identifying handles and reducing them to the appropriate left most non-terminals. It is the basis of bottom-up parsing and is responsible for the accomplishment of syntax analysis using bottom-up parsing.
There is 1 question to complete.