A chemical system that mimics decoding operations