transform

abstract fun <T> transform(sppt: SharedPackedParseTree): T

map the tree into an instance of the targetType