company logo

BNFNode :: value - Get symbol value for BNF tree node

The function returns the symbol value for the BNF tree node, i.e.. the value specified for the symbol in the analyzed expression. When the BNF tree node is not valid, the function throws an exception.

Return value:  String value ( odaba::String & )

Implementation overview

Implementation details

  1. Get value as defined in expression
    odaba::String BNFNode  :: value (  )

    The function returns the value as being defined in the expression.

  2. to list
  3. Get normalized value
    odaba::String BNFNode  :: value ( bool bNormalize )

    When passing true for bNormalized , the function returns a normalized string, i.e. for quoted string values duplicate quotes are reduced and beginning and ending quote are removed.

    Notes:

    String values may be enclosed in '...' or "...". Used quote characters within the string must be duplicated.

    • bNormalize - Normalize integer or string
  4. to list