I'm learning about ambiguity in grammars and I need a little help to understand better. Here is a grammar:
<S> ::= if <S> then <S>
<S> ::= if <S> then <S> else <S>
<S> ::= a
Using a parse tree or left-most derivation, how can I show that this grammar is ambiguous?
ifstatements in different combinations, and for each one think of whether you can put "parentheses" on it multiple conflicting ways - Alex Knauth