A common reason to prefer recursive descent in a production compiler is
Answer: B
Correct answer: the freedom to depart from pure context free parsing where needed
A hand-written parser can consult the symbol table, look ahead as far as it likes, and handle a construct specially when the grammar cannot. Real languages contain such constructs, and that flexibility - together with the ability to produce good error messages - is why several major compilers use recursive descent.
Please log in or register to report this question.