문제

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