Sentence:  The algorithm pops the stack to obtain a new current node when there are no more children (when it reaches a <WSD>leaf</WSD>). 
Meaning of the word marked with <WSD> tags:  In a tree, a node that has no descendants.