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