[antlr-interest] C# rules cannot return chars
Johannes Luber
jaluber at gmx.de
Tue Jul 3 03:33:49 PDT 2007
Vaclav Barta wrote:
> Hi,
>
> for the C# target, a rule like
>
> test returns [ char value ] :
> 'test' { $value = 'a'; }
> ;
>
> produces code whose compilation fails with
>
> error CS0031: Constant value '0' cannot be converted to a 'char'
>
> The work-around is obviously to return an object containing a char, but
> still, somebody might be interested in fixing the problem... BTW what's
> the official way to report ANTLR bugs (for the C# target)?
> http://www.antlr.org:8888/browse/ANTLR sems to be read-only?
>
> Bye
> Vasek
>
Just report it here. Micheal will have then a look at it.
Best regards,
Johannes Luber
More information about the antlr-interest
mailing list