[antlr-interest] Re: Bug in ANTLR C# implementation

micheal_jor open.zone at virgin.net
Wed Dec 1 05:26:31 PST 2004

--- In antlr-interest at yahoogroups.com, "Maassen, H.A.M."
<H.A.M.Maassen at s...> wrote:
> > Interesting. But the tree parsers must be initialized in the same way
> > off a parser right?.
> > On second thought, perhaps you are suggesting that the method should
> > be removed from C# tree parsers too?.
> From the online manual:


> To get this to work in C# (assuming that the CalcTreeWalker does
tree-reformatting) I'd have to change it to:
>   CalcTreeWalker.initializeASTFactory(walker.getASTFactory());

> That extra line feels kind of random to me :) Seems like it should
just be done automatically in the constructor. Without a manual call,
the procedure is never run.

Sounds like the documentation needs fixing. I can already see messages
like "Bug in ANTLR/C#: TreeParser ignores heterogeneous AST
directives" if the default behaviour is changed to silently create
CommonAST instances.



Yahoo! Groups Links

<*> To visit your group on the web, go to:

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

More information about the antlr-interest mailing list