[antlr-interest] 2 C-target questions

Johannes Luber jaluber at gmx.de
Wed Oct 3 14:33:47 PDT 2007


Gavin Lambert wrote:
> At 01:47 4/10/2007, Johannes Luber wrote:
>>Gavin Lambert wrote:
>>> Just use $myToken.text.  The codegen should translate that into
>>> the appropriate bit of code no matter what target language
>>> you're using.
>>>
>>That's not true for at least the C# target. I've wrote about it on
>>the appropriate wiki page.
> 
> Wouldn't that be a bug in the C# target codegen, then?  It ought to be
> able to translate $x.text into tokenVariable.Text automatically, thereby
> making it easier for people to switch target languages.
> 
True, but I thought that was to mimic the C# syntax more closely. I
suppose Terence has the say in this matter.

Best regards,
Johannes Luber


More information about the antlr-interest mailing list