[antlr-interest] first and follow and lookahead
Terence Parr
parrt at cs.usfca.edu
Mon Jan 7 11:15:54 PST 2008
On Jan 7, 2008, at 8:38 AM, Edwards, Waverly wrote:
>
> Yes Sir, I have seen explanations of first and follow.
> What I would really like to know is if I can obtain
> through ANTLR an output of first and follow sets.
Yes, ANTLR computes this for error recovery. Look for methods FIRST/
LOOK etc... in Grammar. Well, in 3.1 they will be similar and
probably in LL1Analyzer.java.
Ter
More information about the antlr-interest
mailing list