[antlr-interest] Getting all the info from a n-ary tree

BoneCrusher Pouliot dudewithattitude at hotmail.com
Wed Jul 27 14:01:57 PDT 2005


I used to get info from a binary tree like this :

    #(OR_ DocIDsLeft  = expr[p_pSearchedKeywords, p_pNotSearchedKeywords]
            DocIDsRight = expr[p_pSearchedKeywords, p_pNotSearchedKeywords] 
)
            {
                DocIDs = DocIDsLeft;

                DocIDs |= DocIDsRight;
            }

I now use a n-ary tree and I want to be able to do the same for all the 
subtrees. How can I do this ?




More information about the antlr-interest mailing list