Re: languages



In article <1139804684.215781.317100@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"jason_box" <cppisfun@xxxxxxxxx> wrote:

I have this problem that I'm trying to solve that involves writing down
a grammar for the following structures:

L = {a^nb*a^n : n >= 0} and L ={ z in {0,1,2}* : number of 0's are
equal to number of 1's + number of 2's }

Does anyone have any ideas on how to generate a simle CFG for that?

This sounds like homework, n'est-ce pas.

Show us what you've done and where you got stuck; doing that will likely
produce some helpful replies.

--
---------------------------
| 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 |
-----------------------------
.



Relevant Pages

  • Re: cap. words refer to ?
    ... course on english now,i am not taking any assignment or homework on ... I am reading it only to develop my reading. ... I have subscribed newsweek magazine for 2 years. ... grammar is hard for me. ...
    (alt.usage.english)
  • Re: cap. words refer to ?
    ... course on english now,i am not taking any assignment or homework on ... I am reading it only to develop my reading. ... I have subscribed newsweek magazine for 2 years. ... grammar is hard for me. ...
    (alt.usage.english)
  • Re: Nkauj Cua Lis Foom TSIS YOG Lyfoung
    ... Hmmm...What kind of grammar is it? ... English or Hmonglish? ... homework, just a sixth sense. ...
    (soc.culture.hmong)
  • Re: Write unambiguously grammar.?
    ... reluctance to do your homework yourself to his/her/it satisfaction, ... Using your grammar, provide a derivation of the expressions: ...
    (sci.math.num-analysis)