[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:
<SNIP>
> 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.
Cheers,
Micheal
ANTLR/C-#
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list