Program HaploParser solves so-called genotype phasing (or haplotype inference) problem. The program (and its source) is mainly for educational and for research purposes. More accurate programs for the genotype phasing are, e.g. BACH and HIT.
The input (and output) format of HaploParser is the same as in BACH and HIT, see their documentation. The usage of HaploParser is explained in a README file included in its source package.