[antlr-interest] Bug in ANTLR C# implementation
Ric Klaren
ric.klaren at gmail.com
Wed Dec 1 02:07:57 PST 2004
Hi,
On Wed, 1 Dec 2004 10:48:12 +0100, Maassen, H.A.M.
<h.a.m.maassen at student.tue.nl> wrote:
>
> Well I've found out why I couldn't get any tree-rewriting actions to work - it seems to be a bug in the C# version of the (generated) treeparser.
>
> The treeparser's method initializeASTFactory is never called. After manually adding a call to initializeASTFactory(getASTFactory()) in the treeparser the problems have been fixed.
This is actually also default practice in C++ mode. So not sure if
it's a bug, or a case of bad documentation. Furthermore it's not
always a simple matter which factory should be used, at least in C++
you have to make sure you share the factory over the various
treeparsers you have to prevent 'funny' behaviour..
Cheers,
Ric
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