Flattening is done in two ways. We can flatten a parse table by moving the left hand token of an operator one level up. Or doing that with the right hand token.

flatten_operators_one(pd_nested)

Arguments

pd_nested

A nested parse table.