[antlr-interest] first and follow and lookahead
Edwards, Waverly
Waverly.Edwards at genesys.com
Tue Jan 8 06:36:50 PST 2008
I will look into this.
Thank you very much,
W.
-----Original Message-----
From: Terence Parr [mailto:parrt at cs.usfca.edu]
Sent: Monday, January 07, 2008 2:16 PM
To: Edwards, Waverly
Cc: ANTR Interest
Subject: Re: [antlr-interest] first and follow and lookahead
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