[antlr-interest] C# AST problem.

Micheal J open.zone at virgin.net
Sun Oct 23 08:09:10 PDT 2005


HTML mail - yuck!
 
Anyways, please post the changes you made that got this error Phil. It might
just be an AST factory init issue.
 
Cheers,
 
Micheal
 

-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Phil Ritchie
Sent: 23 October 2005 15:45
To: antlr-interest at antlr.org
Subject: [antlr-interest] C# AST problem.


I have been stepping through the IntAndIDParser example under the Getting
Started link on antlr.org. It's a lovely simple tutorial and everything
builds and runs fine until I try to add an AST. My code builds but when
parsing the second token it bombs with "Index was outside the bounds of the
array" error at FactoryEntry entry = hetroList_[nodeTypeINdex] in
ASTFactory.cs.
 
I have seen some historical threads about initializeASTFactory but from the
2.7.2 release notes this issue would seem to have been fixed.
 
Has anyone had similar problems or could suggest what's wrong? I'm using
antlr-2.7.5 and C#.
 
Phil.



  _____  

How much free photo storage do you get? Store your holiday snaps for FREE
with Yahoo! Photos.
<http://us.rd.yahoo.com/mail/uk/taglines/default/photos/*http://uk.photos.ya
hoo.com/> Get Yahoo! Photos

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20051023/4b42d34e/attachment.html


More information about the antlr-interest mailing list