0 votes 0 votes The productions E -> E+E | E-E | E*E | id a:) generates inherently ambiguous languages b:) generates and ambiguous language c:) is an ambiguous grammer d) none of these Compiler Design compiler-design parsing ambiguous-grammar + – rahul sharma 5 asked Oct 17, 2017 • retagged Jun 18, 2022 by Lakshman Bhaiya rahul sharma 5 8.5k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply Shubhanshu commented Oct 17, 2017 reply Follow Share c) ? 0 votes 0 votes Rishabh Gupta 2 commented Oct 18, 2017 reply Follow Share The language is not ambiguous since an unambiguous grammar can be written for the same language. So, the language is NOT inherently ambiguous. But this grammar is ambiguous as you can see using some strings like id*id+id. So option (C). 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes my answer Hira Thakur answered Oct 18, 2017 Hira Thakur comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes It is ambiguous grammar because for the string id+id+id ....we have 2 parse trees the grammar that has more than one parse tree for a output string is always ambiguous.. SHUBHAM SHASTRI answered Oct 18, 2017 SHUBHAM SHASTRI comment Share Follow See all 0 reply Please log in or register to add a comment.