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 action |
|
Answer» Right option is (c) It detects shift-reduce conflict and resolves the conflict in favor of a shift over a reduce action The best I can explain: Yacc tool is used to create a LALR(1) parser. |
|