// Create a new treevar tree = new SyntaxTree()// Create a new nodevar childNode = new SyntaxTree.Node({ type: 'ArbitraryNode'})// Add nodes to the treetree.root.appendChild( childNode )tree.root.prependChild( otherChildNode )// Replace a nodesomeNode.replaceChild( oldChild, newChild )// InsertionssomeNode.insertBefore( newChild, existingChild )someNode.insertAfter( newChild, existingChild )// RemovalssomeNode.removeChild( child )otherNode.remove()// Siblings