Re: grammar q
- From: Andrea Moro <ciskman@xxxxxxxxx>
- Date: Wed, 29 Nov 2006 09:08:50 GMT
Per Freem wrote:
hi
suppose we have the following grammar:
r -> sr | s
s -> b | Eps | r
where Eps represents the empty string.. is it ambiguous? i can see a
leftmost derivation of 'b':
r=>s=>b
and a leftmost derivation of bEps
r=>sr=>br=>bs=>bEps
but does that count as two distinct leftmost derivations for the same
string? we normally think b and bEps are the same, since Eps is just
empty but for this purpose are they considered so?
yes it is considered ambiguous because b and bEps are the same.
.
- References:
- grammar q
- From: Per Freem
- grammar q
- Prev by Date: Re: Water surface in hexahedron
- Next by Date: Re: Discussion about transformation TSP to UniqueTSP
- Previous by thread: grammar q
- Next by thread: Re: Discussion about transformation TSP to UniqueTSP
- Index(es):