Rough draft of parser