[antlr-interest] Avoiding the generation of final methods
Sam Barnett-Cormack
s.barnett-cormack at lancaster.ac.uk
Thu Apr 16 08:58:43 PDT 2009
Patrick Schönbach wrote:
> On 16.04.2009 17:29, Sam Barnett-Cormack wrote:
>> Why do you want the parse methods to be non-final? You can subclass
>> the lexer/parser as long as the *class* isn't final. You just can't
>> override the final methods, and it's probably not a great idea to be
>> overriding the actual parse methods themselves.
>
> For example, think of a parser that adds location info.
What do you mean by "location info"?
Sam
More information about the antlr-interest
mailing list