[antlr-interest] 2 C-target questions
Gavin Lambert
antlr at mirality.co.nz
Wed Oct 3 11:42:25 PDT 2007
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.
More information about the antlr-interest
mailing list