Flattens a parse table if certain tokens occur in this table or its child,
either flattening from left or from right. If one of token is present in
pd_nested  and one of child_token is present in one of the children next
to token in pd_nested, the nested parse table is flattened. Otherwise, it
is returned unmodified.
flatten_pd(pd_nested, token, child_token = token, left = TRUE)A nested parse table.
A character vector with tokens of which at least one has to
occur in pd_nested in order to flatten it.
A character vector of tokens of which at least one has to occur in the child in order to flatten the parse table.
Flag that indicates whether the parse table should be flattened from left or from right.