[stringtemplate-interest] RE: [antlr-interest] StringTemplate C# : delimter other than dollar sign?

Luis Leal luisl at scarab.co.za
Sun Jan 1 07:37:42 PST 2006


Hi,

The _saveIndex problem is a known bug in Antlr C# (only under certain
circumstances). The C# guys have looked at it, but will probably only fix it
in a later version (it's not a simple fix).

I'm afraid the only workaround is to manually edit the generated files at
the moment. :)

Regards

Luis

----------------------------------------------------------------------

Luis,

Thanks again. I copied the default C# template to a new one using the tilde
(the pound symbol and CSS/HTML don't play nicely together) and that seems to
fit my needs.

In building the generated code using Visual Studio 2005 (not sure if it's
compiler-specific or not), I noticed there is a minor error that prevents
compiling. The _saveIndex redefines a child element around line 956. It's an
easy fix in the generated code (change _saveIndex to _saveIndex1 in the
child case statement), but I'm guessing it's more challenging on the other
side.

Has this problem come up in the past? I'd be willing to help track it down,
if I could get some general direction on where that's even generated :).

Thanks,
Paul




More information about the stringtemplate-interest mailing list