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