Add new rules to extended grammar. Pass rhs_costs to extended_grammar/2.