public static TreePattern<String> compile(final String pattern) {
		return compile(pattern, Function.identity());
	}
Compiles the given tree pattern string.

@param pattern the tree pattern string
@return the compiled pattern
@throws NullPointerException if the given pattern is {@code null}
@throws IllegalArgumentException if the given parentheses tree string
        doesn't represent a valid pattern tree or one of the variable
        names is not a valid (Java) identifier
jenetics.ext/src/main/java/io/jenetics/ext/rewriting/TreePattern.java