[antlr-interest] Accesing LexerSharedInputState (inputState)

Joan Pujol joanpujol at gmail.com
Mon Aug 23 10:02:17 PDT 2004


Hi,

I'm subclassing the CommonToken to put filename info.

I also override the makeToken of the lexer. But I have a problem, I
can't access inputState variables like line, column, filename...

It's very strange because in CharScanner access this variables, and I
think that it shouldn't be able to do. Because the variables of
LexerSharedInputState are protected and CharScanner doesn't extends
LexerSharedInputState.

And my Lexer class that extends CharScanner can access the protected variables.

What I'm doing wrong?


Cheers,


-- 
Joan Jesús Pujol Espinar


 
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