Add parsing logic for class declarations

(This also introduces the EOF token)
That's not part of the grammar.