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