Pyrolytic conversion of biomass to anhydrosugars