COMPILER DESIGN

SYNTAX ANALYSIS

ERROR RECOVERY IN SYNTAX ANALYSIS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
____ is a recursive descent parser that needs no backtracking.
A
Predictive Parser
B
LR
C
Brute Force
D
Shift Reduce
Explanation: 

Detailed explanation-1: -A predictive parser is a recursive descent parser that does not require backtracking.

Detailed explanation-2: -25. Which parsing technique avoids backtracking? Explanation: Both predictive parsing and recursive descent parsing avoid backtracking.

Detailed explanation-3: -Non-recursive descent parser or table-driven is also known as LL(1) parser. This parser follows the leftmost derivation (LMD). The main problem during predictive parsing is that of determining the production to be applied for a non-terminal.

There is 1 question to complete.