[antlr-interest] Avoiding the generation of final methods

Patrick Schönbach schoenbach at itemis.de
Thu Apr 16 08:35:25 PDT 2009


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.

Regards,
Patrick

-- 
Patrick Schönbach
Software Architect

PGP public key available. Key ID: 0B7DDE39
Or email to pgp at robustsoft.de with subject 'pschoenb'.
Fingerprint: BE80 0E7E B68E CE99 623C  902D 62A6 806A 0B7D DE39

web: http://www.itemis.de
mail: schoenbach at itemis.de
xing: https://www.xing.com/profile/Patrick_Schoenbach

itemis AG
Schauenburgerstraße 116
24118 Kiel
Germany

Rechtlicher Hinweis:
Amtsgericht Dortmund, HRB 20621
Vorstand: Wolfgang Neuhaus, Jens Wagener, Dr. Georg Pietrek
Aufsichtsrat: Dr. Burkhard Igel(Vors.), Stephan Grollmann, Michael Neuhaus


More information about the antlr-interest mailing list