Patrick Schönbach schrieb: > Hi all, > > usually, AntLR generates final methods for each rule. However, > sometimes, one would like to subclass the parser. Is there a way to > generate non-final methods? > > Regards, > Patrick > >
Maybe there is a better method, but from what I have learned, there are "string templates" for each language target. So basically, you could get the ANTLR source code, copy/edit the java-target, such that the keyword "final" is missing. If that fits your needs. Best, Andreas List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
