[antlr-interest] 2.7.2a2 C# codegen...
micheal_jor
open.zone at virgin.net
Thu Apr 4 14:33:32 PST 2002
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/
More information about the antlr-interest
mailing list