4 votes 4 votes X--> X(Y) / Y Y--> (X)Y / 0 / 1 / Eps Compiler Design compiler-design parsing ambiguous + – shekhar chauhan asked Jun 2, 2016 shekhar chauhan 1.2k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 5 votes 5 votes Let’s find out the derivation tree for the string "(0)". As there are two parse trees for a single string "(0)", the grammar G is ambiguous. LeenSharma answered Jul 2, 2016 • selected Jul 2, 2016 by shekhar chauhan LeenSharma comment Share Follow See all 3 Comments See all 3 3 Comments reply LavTheRawkstar commented Jul 2, 2016 reply Follow Share Hmm this is a good and unique question and good solution given by leen sir 1 votes 1 votes shekhar chauhan commented Jul 2, 2016 reply Follow Share when i asked this question i had a confusion about it but you draw the tree so well i forgot what was the confusion ....but when i get it i'll ask you. 1 votes 1 votes LeenSharma commented Jul 2, 2016 reply Follow Share ok no problem 0 votes 0 votes Please log in or register to add a comment.