Write spec for parser