Menu

Leaf nodes?

Developers
a2z
2004-02-22
2004-02-22
  • a2z

    a2z - 2004-02-22

    Hi,

    Could you explain what you mean by PriorLeafNode, NextLeafNode in ParseTreeNode.pas.

    What do they do?

    What do you consider a leaf --a node with no child?

     
    • Anthony Steele

      Anthony Steele - 2004-02-22

      A leaf node is a node with no children, thus it represents a source token.  All non-leaf nodes represent a grouping of source tokens in the parse tree.

      The source tokens can be considered as an ordered list as well as the leaves of a tree - prior and next give the tokens just before and just after the current one.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.