Re: context-free grammars (cfg) for the language
- From: Barb Knox <see@xxxxxxxxx>
- Date: Thu, 23 Feb 2006 06:29:00 +1300
In article <1140620321.687004.104720@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"kool_guy" <yjaplomb@xxxxxxxxx> wrote:
Can someone come up with a CFG for the following language?
L = { xcy | x != y, (x, y in {a, b} *) }
Any help is appreciated!
Hint: make a grammar for { xcy | x = y, (x, y in {a, b} *) };
then modify it to add more 'a's and/or 'b's to one side or the other.
--
---------------------------
| BBB b \ Barbara at LivingHistory stop co stop uk
| B B aa rrr b |
| BBB a a r bbb | Quidquid latine dictum sit,
| B B a a r b b | altum viditur.
| BBB aa a r bbb |
-----------------------------
.
- Follow-Ups:
- Re: context-free grammars (cfg) for the language
- From: kool_guy
- Re: context-free grammars (cfg) for the language
- From: kool_guy
- Re: context-free grammars (cfg) for the language
- References:
- context-free grammars (cfg) for the language
- From: kool_guy
- context-free grammars (cfg) for the language
- Prev by Date: Re: cfg for this language
- Next by Date: Re: cfg for this language
- Previous by thread: context-free grammars (cfg) for the language
- Next by thread: Re: context-free grammars (cfg) for the language
- Index(es):