TO DO: Complete An instance of AST subclass represents a node of the Abstract Syntax Tree of a Gobstones program.

Abstract

Hierarchy (view full)

Implements

API

Auxiliaries

Implementation: Internal state

API

  • TO DO: Complete

    Parameters

    • tag: symbol

      TO DO: Complete

      Group

      API

    • children: ASTChild[]

      TO DO: Complete This array may be used for 2 purposes:

      • as a list of heterogeneous childs (several branches, some of them lists)
      • as a list of homogeneous childs (just one list branch, represented directly) The difference is given by the kind of node and its components.

      Group

      API

    • breakLine: boolean
    • span: Span = ...

      TO DO: Complete

      Group

      API

    • attributes: OptionsTable = ...

      TO DO: Complete

      Group

      API

    Returns BaseAST

attributes: OptionsTable = ...

TO DO: Complete

children: ASTChild[]

TO DO: Complete This array may be used for 2 purposes:

  • as a list of heterogeneous childs (several branches, some of them lists)
  • as a list of homogeneous childs (just one list branch, represented directly) The difference is given by the kind of node and its components.
span: Span = ...

TO DO: Complete

tag: symbol

TO DO: Complete

  • TO DO: Complete

    Returns string

Auxiliaries

  • TO DO: Complete

    Returns string

Implementation: Internal state

_breakLine: boolean

TO DO: Complete Indicates if the first children should start in a different line (false by default) when printing the AST