[antlr-interest] parametrized c# parser class

Sam Harwell sam at tunnelvisionlabs.com
Mon Apr 23 04:11:02 PDT 2012


The CSharp2 and CSharp3 targets always generate generic classes. I've even
managed to get the CSharp3 target to generate a parser that used a value
type (struct in C#) for the token type without any boxing/unboxing involved.

I'll need more details about what you're trying to do to be more specific.

--
Sam Harwell
Owner, Lead Developer
http://tunnelvisionlabs.com


-----Original Message-----
From: Costa Basil [mailto:costa_basil at yahoo.ca] 
Sent: Monday, April 23, 2012 2:06 AM
To: antlr
Subject: [antlr-interest] parametrized c# parser class

Using the cshap3 target, is it possible to generate a parametrized c# parser
class? Something like:

public class MyParser<T> and so on.

I also want to have some non-terminal attributes of type T.

Thanks

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