Back to the 2022 paper

Module 2 : Syntax Analysis (Parser)

20222m

Choose the correct answer of the following:
Consider the following grammar:
ScAdS \rightarrow cAd
Aabaca.A \rightarrow ab | ac | a.
For input string cad, how many times the recursive descent parser will backtrack?
(i) 2
(ii) 3
(iii) 4
(iv) 5

Similar questions