company logo

BNFNode :: BNFNode - Constructor

BNF tree nodes are returned by parser functions and usually not created by the application.

Implementation overview

Implementation details

  1. Create copy node
    BNFNode  :: BNFNode ( odaba::BNFNode &cBNFNode )

    The constructor creates a copy node for the BNF tree node passed in cBNFNode. When creating copy nodes for top nodes returned from parser (BNFParser::Analyze(), BNFParser::AnalyzeFile()), those will share the node data. Destroying a BNFNode will not release data, which has to be done explicitly by calling release(), but only once for all copy nodes.

    • cBNFNode - BNF tree node
  2. to list
  3. Default constructor
    BNFNode  :: BNFNode (  )

    Created an empty BNFNode instance.

  4. to list