[antlr-interest] exceptions in the lexer

Ric Klaren ric.klaren at gmail.com
Tue Dec 7 11:51:52 PST 2004


On Tue, 7 Dec 2004 14:16:15 -0500, Don Caton
<dcaton at shorelinesoftware.com> wrote:
> > Ack!  Heh, wait, looks public:
> >
> > public class TokenStreamRecognitionException extends
> > TokenStreamException {
> >      public RecognitionException recog;
> > ....
> > }
> 
> I don't do Java ;).  In the C++ version, it's private.  Perhaps that is just
> a porting error then.

The C++ version has some proxy methods to the recognition exception. A
bit nicer than a public accessible attribute. (Not sure if that's
already in 2.7.4)

Cheers,

Ric


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

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





More information about the antlr-interest mailing list