0
$\begingroup$

In the following grammar I want to find the follows for each non terminal.

S-> iEtSS' | a

S' -> eS | epsilon

E -> b

The issue is, when I try to find the follow for S, according to the second grammar, I need the follow of S' first. Again to calculate the follow of S', according to grammar 1, I need the follow of S. Isn't there a circular dependency appearing here? Any way to solve this issue? Thanks

$\endgroup$
1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.