[antlr-interest] Generic parser class

Sam Harwell sharwell at pixelminegames.com
Tue Mar 31 08:01:33 PDT 2009


It doesn't currently support that. However, I've spent a fair bit of time looking into the possibilities of it. Can you give an idea of specifically what you're trying to accomplish with the generics, and if it falls into one of the areas I've worked on I can give some ideas on how to progress. :)

Thanks,
Sam

-----Original Message-----
From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Michael Sperber
Sent: Tuesday, March 31, 2009 9:39 AM
To: antlr-interest at antlr.org
Subject: [antlr-interest] Generic parser class


For an ANTLR project (Java backend), a need a to parameterize the parser
class over a generic, e.g. I'd like the generated parser to start with a
declaration like this:

public class XXXParser<P extends Foo> extends Parser { ... }

Is this possible?  Help would be much appreciated!

-- 
Regards,
Mike


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address


More information about the antlr-interest mailing list