Wrote a datatype to better represent parsing.