Implement compartor generator.

Closes #7.