Tip:
Highlight text to annotate it
X
hello friends today we will learn eliminating ambiguity.
So at first we consider this grammar this is also called dangling else grammar
so the rules of this grammar are as written and here other means you are further deriving some
different type of statements like s1,s2 so if
we use the above
grammar to derive
the
given string then we will get a unique parse tree
as shown in the diagram you can see
but if we use the same grammar to derive this string i.e. we try to
parse
this
string then
we will get two parse trees ok
which are those two parse trees, that i am going to
make clear
one
is this