The Gateway to Computer Science Excellence
0 votes
88 views
If we have more than 1 parse tree,but one is LMD and other is RMD , Is Grammar Ambiguous?

There are no other parse tree other than these two.
in Compiler Design by (259 points) | 88 views
+3

It is ambiguous.

The Property is if we have more than 1 LMD or 1 RMD or 1 Parse tree then it is ambiguous.

+1
if both the parse tree derived using Lmd and Rmd are same then its ambiguous.

but if there are only  two parse tree one is using lmd and other using rmd and both of them are different the  its not ambiguous
+1
yes more than 1 parse tree -->ambiguous grammar irrespective of LMD ,RMD

1 Answer

+1 vote
Best answer
No grammar is not ambiguous.

For every string of language there exist one leftmost and one right most derivation.
by (125 points)
selected by
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,647 questions
56,497 answers
195,489 comments
100,811 users