Production of coke and semi-coke products