InterviewSolution
Saved Bookmarks
| 1. |
Which one of the following is true about the action of yacc for the given grammar?(a) It detects recursion and eliminates recursion(b) It detects reduce-reduce conflict and resolves(c) It detects shift-reduce conflict and resolves the conflict in favor of a shift over a reduce action(d) It detects shift-reduce conflict and resolves the conflict in favor of a reduce over a shift actionI got this question during a job interview.I need to ask this question from L-Attributed Definition in portion Syntax Directed Definition and Translations of Compiler |
|
Answer» Right option is (c) It DETECTS SHIFT-reduce conflict and resolves the conflict in favor of a shift over a reduce action |
|