سؤال

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?

هل كانت مفيدة؟

المحلول

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

A -> bA' | cA' 
A'-> aA' | e
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top