Parser

I've added a working parser and unit tests of the parser.