[antlr-interest] Re: Request enhancement ANTLR
Terence Parr
parrt at jguru.com
Mon Jun 24 18:03:16 PDT 2002
On Monday, June 24, 2002, at 04:15 PM, Dennis Marsa wrote:
> Terence Parr wrote:
> Why not implement setFilename/getFilename in class Token exactly like
> setText/getText are currently?
>
> That is, class Token doesn't store the filename itself, but it does
> define
> the interface for setting and getting the filename, with do-nothing
> default
> implementations.
>
> Of course, one would still have to subclass Token to add storage for the
> filename, and override setFilename/getFilename to manipulate it.
Makes sense to me...adding to list.
Ter
--
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