Added more parsing code with tests.
Extract enum parsing logic.
Added more bonus parsing code with tests.