Produce N-ary trees when parsing