Turns a nested parse table into a flat parse table and extracts all attributes
extract_terminals(pd_nested)
A nested parse table.