[antlr-interest] Bug in 2.7.6 with lexer option defaultErrorHandler = true

Prashant Deva prashant.deva at gmail.com
Wed Feb 15 11:38:53 PST 2006


Terence,
  How soon are you planning to release 2.7.7 ?

If it will be a little late, could you just send me the fix for this
problem, so I can put it in the version of antlr that will be provided with
ANTLR Studio in the next update.

I will version it as 2.7.6.1

On 2/16/06, Terence Parr <parrt at cs.usfca.edu> wrote:
>
>
> On Feb 15, 2006, at 5:53 AM, Alexey Demakov wrote:
>
> > When lexer option defaultErrorHandler is set to true,
> > antlr-2.7.6 generates error handlers with call of
> > public void recover( RecognitionException ex, BitSet tokenSet )
> >
> > but this method is defined only in Parser, not in CharScanner,
> > so it causes compilation errors.
> >
> > antlr-2.7.2 "inlines" this method as
> >
> > consume();
> > consumeUntil( tokenSet );
> >
> > Workaround - define this method in lexer:
> >
> > public void recover( RecognitionException ex, BitSet tokenSet )
> > throws CharStreamException {
> >  consume();
> >  consumeUntil( tokenSet );
> > }
>
> I swear I fixed that but as you say...fix did not get in there. :
> (  We're going to do a 2.7.7 soon.
>
> Ter
>



--
Prashant Deva
Creator, ANTLR Studio
Founder, Placid Systems, www.placidsystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060216/71ed36c3/attachment.html


More information about the antlr-interest mailing list