company logo

BNFNode :: parent - Get parent BNF node

The function returns the parent BNFNode. In order to avoid exceptions, one may call hasParent() before.

Return value:  BNF tree node ( odaba::BNFNode & )

Implementation details

odaba::BNFNode BNFNode  :: parent (  )

The function returns the parent BNFNode, when existing. When no parent BNFNode exists, the function throes an exception.