[antlr-interest] getFirstChild vs getNextSibling ?
    ow 
    oneway_111 at yahoo.com
       
    Sat May  3 08:02:19 PDT 2003
    
    
  
--- jw9315 <jw9315 at bris.ac.uk> wrote:
> Hi,
> I writing a very simple interpreter using an AST tree. I know this is
> 
> probably a trivial question, but what is the difference between the 
> calls astTree.getFirstChild() vs astTree.getNextSibling()? Could 
> anyone give me a short example, it would be much appreciated!
> Thanks,
> Jon
The way I see it:
AST parent
        +
        |
        |--- firstChild = parent.getFirstChild()
        |
        |--- nextSibling = firstChild.getNextSibling()
     
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
 
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
    
    
More information about the antlr-interest
mailing list