0

Here is the productions.

A-> Aa| b|c;

Now shall i do

A->bA' 
A'-> aA' | e (empty transition)
A->c

Will it be the right answer? That is either 'b' or 'c' can be used?

Kraken
  • 23,393
  • 37
  • 102
  • 162

1 Answers1

0

I would say, there has to be 'b' or 'c' at the beginning, so more like this:

A -> bA' | cA' 
A'-> aA' | e
Detheroc
  • 1,833
  • 15
  • 19
  • could you help me with this too. http://stackoverflow.com/questions/9250363/first-and-follow-sets – Kraken Feb 12 '12 at 16:51