Rough cut of the parser.
Unit tests for parser. Parser mostly finished.