[antlr-interest] ANTLR question

Terence Parr parrt at cs.usfca.edu
Mon Nov 7 12:52:15 PST 2005


Hi. use toStringTree not toString to print and it will ignore the  
other siblings ;)

Ter
On Nov 7, 2005, at 12:46 PM, bijoy thomas wrote:

> Hi all,
>
>    I have been working with ANTLR for a while and came
> across a wierd behaviour yesterday. For some reason
> the call to getFirstChild() returns the while sibling
> list instead of the first Child. I'm using version
> 2.7.4. For eg,
>
> A
> |
> |
> - B -- C
>
> Calling getFirstChild() on A returns (B C) instead of
> just B. Anyone with similar experiences?
>
> Thanks in advance,
> Bijoy Thomas.
>
>
>
> 	
> 		
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com



More information about the antlr-interest mailing list