Sentence:  The algorithm <WSD>pops</WSD> the stack to obtain a new current node when there are no more children (when it reaches a leaf). 
Meaning of the word marked with <WSD> tags:  To remove a data item from the top of (a stack).