ASTChild: Token | Token[] | AST | AST[]

TO DO: Complete

The child of an AST represents either of two things:

  • an element of a list of heterogeneous childs (several branches, some of them lists)
  • an element of a list of homogeneous childs (just one list branch, represented directly) In the second case, all childs are ASTs, and not Tokens or arrays. (that is, when there is only one child of type AST[], it is promoted to the whole)