pruned languages to remove unreachable nonterminals and terminals in lagnauges