Talk About Network



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 > Computing Follo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 2354 of 2421
Post > Topic >>

Computing Follow set

by pavan <pavan.mail@[EMAIL PROTECTED] > Mar 6, 2008 at 04:30 PM

I have a question regarding the computation of FOLLOW sets.
Consider the following grammar:

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.

Thank you.




 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 May 14 3:32:18 CDT 2008.