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

Maassen, H.A.M. H.A.M.Maassen at student.tue.nl
Wed Dec 1 05:44:58 PST 2004


I haven't tried working with hetero-trees yet, how is this function related to those? Where are the commonAST instances created?
 
-----Original Message----- 
From: micheal_jor [mailto:open.zone at virgin.net] 
Sent: Wed 12/1/2004 2:26 PM 
To: antlr-interest at yahoogroups.com 
Cc: 
Subject: [antlr-interest] Re: Bug in ANTLR C# implementation





	--- 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
	
	
	
	
	
	
	
	



 
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/
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 5314 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20041201/d8cf62c6/attachment.bin


More information about the antlr-interest mailing list