Change the validation of production rules in PCFGs.
Parse weight and LHS of production rules first for DRY.