by "Russ Cox" <rsc@[EMAIL PROTECTED]
>
Mar 6, 2008 at 09:04 PM
> A -> aB | a
> B -> bA | b
>
>>From the production A -> aB, we have FOLLOW(B) contains FOLLOW(A).
>>From the production B -> bA, we have FOLLOW(A) contains FOLLOW(B).
>
> This ends up being an infinite loop when I code it. I would appreciate
> your suggestions on this.
Start with FOLLOW(A), FOLLOW(B) empty, and then
repeatedly recalculate them, until they stop growing.
Russ