[antlr-interest] Re: Problem with token names that are also keywords in target language (e.g. C#)
micheal_jor
open.zone at virgin.net
Tue Mar 12 07:41:55 PST 2002
--- In antlr-interest at y..., Ric Klaren <klaren at c...> wrote:
> At least I still have no clue what variables you mean exactly. And
if
> patching should be done in something else than input files for the
> examples.
I gave an example - the token "in" (as on INCrement) results in a
vraible named "in". "in" is a keyword in C# ( as in "foreach <var> in
<enumerator>").
> Think that shared is a big word in the context of the examples.
Most of the
> examples are quite incompatible between Java/C++. Maybe it's better
for
> Java/C# ?
OK. They are different anyhows. Should have guessed with all the
semantic action snippets.... ;-)
> > (who keeps tracks of changes in the examples accross languages?).
>
> The language maintainers might port changes done in examples. In a
very
> rare case someone posts a patch for all examples. In general nobody
keeps
> track of this stuff. At least I noticed no such activity since
starting to
> work on antlr.
>
> Easiest is to just make the changes for the C# dir I guess.
Done. Thanks.
Micheal
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list