Parser and writer