extended grammar conversion to ABNF with probabilities (and more header information)