[antlr-interest] 2.7.2a2 C# codegen...
Smith, Eric V.
ericsmith at windsor.com
Thu Apr 4 14:58:02 PST 2002
1. I'd leave them as is, not .Net-ify them. It makes debugging easier.
3. I ran in to this problem as well. I just created a global label
generator. Not the cleanest thing, but it works. I can't believe that
MS made this design decision. The last time I was out there I discussed
this with a member of the C# team. He says they're aware of the
generated code issue, but they felt it would prevent many mistakes. I
disagree, but we're stuck with it.
4. I'm willing to convert some samples. I've got all of the samples I
converted from the last time I did this, I suspect many of them will
work with your code. But I'm going out of town tomorrow, I'll be back
next week.
5. I don't have an opinion one way or the other on this one. Do
whatever you feel is best.
Thanks for the work. I look forward to trying it out.
Eric.
> -----Original Message-----
> From: micheal_jor [mailto:open.zone at virgin.net]
> Sent: Thursday, April 04, 2002 5:34 PM
> To: antlr-interest at yahoogroups.com
> Subject: [antlr-interest] 2.7.2a2 C# codegen...
>
>
> Few questions to those interested:
>
> 1. Should the classes that make up the runtime be .NET-tified or left
> as is with Java conventions? I'm referrring to the casing, use of
> Properties as opposed to get/set methods etc
>
> 2. Is there a way to check if _saveIndex will actually be used before
> declaring it?. I delayed the declaration until first use but then the
> more serious problem in [3] raised it's ugly head so, I regressed to
> default behaviour.
>
> 3. Is there a way to ensure that _saveIndex is not redefined within a
> nested scope/block. This is an error in C# unlike Java. A prefix or
> suffix to make each declaration unique within all enclosing blocks
> would be fine or, just reusing a single method-wide declaration if
> there would be no interactions between it's various uses.
>
> 4. I've only converted about five examples due to time
> constaints - java, calc, filter/filterWithRule, ASTSupport,
> columns and exprAST I
> think. Anyone up to converting the others?
>
> 5. I would like to allow the users to be able to specify a C#
> namespace to be used by default for all the
> lexers/parsers/treeparsers defined in a *.g file. I would also like a
> per-lexer/parser/treeparser namespace declaration option that
> overrides the default (if any) on a per-class basis:
>
> options
> {
> language = "CSharp";
> namespace = "appel.tiger";
> }
>
> class TigerParser extends Parser;
> options { namespace = "appel.tiger.parser"; }
>
> Finally, how do I get this into ANTLR?. Just mail it to Terrence is
> it?
>
> Micheal
>
>
>
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list