0 votes 0 votes E → E + E | E * E | ( E ) | id What will be operator precedence for above grammar.Is precedence differs due to ambiguity Compiler Design compiler-design operator-grammar operator-precedence ambiguous-grammar descriptive + – jatin khachane 1 asked Jun 7, 2017 retagged Jun 22, 2022 by Lakshman Bhaiya jatin khachane 1 480 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes all +,*,are having same precedence since all are at same level of parse tree hence ambiguous,yes equal precedence increases chances of given grammar being ambiguous aik138463 answered Jun 7, 2017 aik138463 comment Share Follow See all 2 Comments See all 2 2 Comments reply jatin khachane 1 commented Jun 7, 2017 reply Follow Share If that grammar is converted to unambiguos then precedence will change ?? 0 votes 0 votes aik138463 commented Jun 7, 2017 reply Follow Share Yes it will in most of examples bro in ca a e here E->E+T,T->T*F,F->(G),G-> id, here percedencee is different and grammar unambiguous, plz correct if wrong bro 0 votes 0 votes Please log in or register to add a comment.