Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers > Re: Computing F...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 2354 of 2472
Post > Topic >>

Re: Computing Follow set

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
 




 5 Posts in Topic:
Computing Follow set
pavan <pavan.mail@[EMA  2008-03-06 16:30:56 
Re: Computing Follow set
"Russ Cox" <  2008-03-06 21:04:52 
Re: Computing Follow set
torbenm@[EMAIL PROTECTED]  2008-03-07 09:38:37 
Re: Computing Follow set
Max Hailperin <max@[EM  2008-03-07 07:09:32 
Re: Computing Follow set
Hans Aberg <haberg_200  2008-03-08 22:33:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 23 23:36:47 CDT 2008.