addChild method

TerminalNode addChild(
  1. TerminalNode t
)
inherited

Add a token leaf node child and force its parent to be this node. */

Implementation

TerminalNode addChild(TerminalNode t) {
  t.parent = this;
  return addAnyChild(t);
}