Adding writting API to parser