New formalism for QCD parton showers