Re: Ambuguity of CFG
- From: torbenm@xxxxxxxxxxxxx (Torben Ægidius Mogensen)
- Date: 14 Feb 2006 17:12:49 +0100
"beelzebub" <tarball@xxxxxxxxx> writes:
S -> a S a and S -> a
The above is not an ambiguous grammar.
He didn't say it was. He said it was nondeterministic, which is
something else.
A grammar is deterministic if it can be parsed with a deterministic
pushdown automaton with finite lookahead, and nondeterministic if it
can not.
Every ambiguous grammar is nondeterministic, but the converse isn't
true.
Torben
.
- Follow-Ups:
- Re: Ambuguity of CFG
- From: beelzebub
- Re: Ambuguity of CFG
- References:
- Ambuguity of CFG
- From: stylez
- Re: Ambuguity of CFG
- From: J.Jongejan
- Re: Ambuguity of CFG
- From: beelzebub
- Ambuguity of CFG
- Prev by Date: Re: Ambuguity of CFG
- Next by Date: Re: languages
- Previous by thread: Re: Ambuguity of CFG
- Next by thread: Re: Ambuguity of CFG
- Index(es):