Class Tree

This class is entity for MML syntax tree.

Constructors

Accessors

Methods

Constructors

  • Parameters

    • id: string

      This argument is string that identifies syntax tree node.

    • operator: Token

      This argument is instance of Token as syntax tree node.

    • left: null | Tree

      This argument is instance of Tree as left subtree.

    • right: null | Tree

      This argument is instance of Tree as right subtree.

    Returns Tree

Accessors

Methods

  • This method clears indent.

    Returns void

  • This method concatenates subtree as right subtree.

    Parameters

    • node: Tree

      This argument is instance of Tree as syntax tree node.

    Returns void

  • This method represents tree status as string.

    Returns string