[antlr-interest] What exactly does 'follow set' mean?

shmuel siegel antlr at shmuelhome.mine.nu
Sun Apr 17 14:11:45 PDT 2005


Prashant Deva wrote:
> What exactly do you mean by a 'follow set'?
> 
> In the doc it says that, when antlr parsers encounter an error they
> look up tokens until they find one in the 'follow set' of the rule.
> 
> So what exaclty does the parser look for when it encounters an error?
> 
> PRASHANT
> 
> 
While we are on the subject of "follow set", is there a tool that will 
translate a follow set to the characters that it represents? One of the 
strong points of Antlr is that it is possible to understand the code it 
generates. This would be enhanced if the follow and match sets were 
easily translated into human terms.



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.15 - Release Date: 4/16/2005



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.15 - Release Date: 4/16/2005



More information about the antlr-interest mailing list