private static void catChildrenWithSep(Tree tree, String sep, int chopFront, int chopBack,
			StringBuilder sb) {
		int count = tree.getChildCount() - chopFront - chopBack;
		for (int i = 0; i < count; i++) {
			if (i != 0) {
				sb.append(sep);
			}
			generateSleighExpression(tree.getChild(i + chopFront), sb);
		}
	}
Synthesize a tree (node)

@param type the type of the node
@param text the "text" of the node
@param children the children
@return the new node
Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighUtils.java