Re: Find the type



Ravi wrote:
What is the type of following grammar:
S -> aXY
XY -> a
X -> b
Y -> Xb


It's an unrestricted (Chomsky type 0) grammar. However, since the
language it generates is finite, we can find an equivalent
regular grammar:

S -> a | abbb


Regards,

Rick
.



Relevant Pages

  • Re: Find the type
    ... Rick Decker wrote: ... S -> aXY ... right-linear grammar for this language. ...
    (comp.theory)
  • Re: Cranks and errors
    ... I've given you all you need to know that with a language with '+' and ...
    (sci.logic)
  • Re: Cranks and errors
    ... I've given you all you need to know that with a language with '+' and ...
    (sci.logic)
  • Re: Cranks and errors
    ... I've given you all you need to know that with a language with '+' and ...
    (sci.logic)
  • writing delay program in c
    ... I want to generate a delay for a period of 360ns. ... this should be written in c language. ... With Regards ... Ravi Kumar.N ...
    (comp.programming)