[antlr-interest] Error Handling

Terence Parr parrt at jguru.com
Mon Jan 7 11:44:37 PST 2002


On Friday, January 4, 2002, at 07:03  AM, treyspiva wrote:

> I have noticed that Antlr will produce token sets that can be when
> recovering from errors.  I will like to add my own error handling
> however, I would like to use the token sets to recover from errors.

We're adding $FOLLOW I believe.  Ric, did we add $FIRST also or is it my 
turn? ;)

> Is there a way to know what rules the token sets represents?  Also,

Nope.

> when I add the exception code for a rule does antlr still produce the
> token sets for the rule?

Well, the sets are computed for building the parser so they are 
definitely around :)

Ter
--
Chief Scientist & Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list