The Gateway to Computer Science Excellence
0 votes
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 | 111 views

It is ambiguous.

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

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
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.
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
52,345 questions
60,503 answers
95,331 users