Begin fleshing out grammar

This is my first time defining a grammar, so there's probably lots of
mistakes already.