[antlr-interest] Minor suggestion re. Java output

Jim Idle jimi at temporal-wave.com
Mon Feb 4 08:41:47 PST 2008



> -----Original Message-----
> From: Johannes Luber [mailto:jaluber at gmx.de]
> Sent: Sunday, February 03, 2008 2:24 PM
> To: Guntis Ozols
> Cc: Jim Idle; antlr-interest at antlr.org
> Subject: Re: [antlr-interest] Minor suggestion re. Java output
> 
> Guntis Ozols schrieb:
> >
> > Covariant return types are available since java 1.5 (Sept 2004).
> 
> The Java target remains for the foreseeable future 1.4. I haven't
> looked
> if C# allows this, too, but it would be possible to use templates and
> specify the template parameter so that it uses the ASTLabelType value.

C# does allow covariance. I know because I just coded it in my C# parser 
;-). However I would not worry about early versions of C# if I were you, 
only that the code is mono compatible, which seems a good aim.

Jim




More information about the antlr-interest mailing list