ASTNode *ASTNode::createSibling(ASTNodeType t, int value) { ASTNode *i = ASTNode::createNode(t, value); i->setParentNode(_parent); this->addSibling(i); return(i); }
ASTNode *ASTNode::createChild(ASTNodeType t, int value) { ASTNode *i = ASTNode::createNode(t, value); i->setParentNode(this); this->addChild(i); return(i); }