Began work on parser

This commit also begins to sketch out how the code might be organized.