Implement the parser's expect() function

Also start implementing parser tests.
Are you sure that this should be rejected? The grammar says Program -> ClassDeclaration* , thus the empty word should be accepted. Furthermore, a program doesn't have to have a main method, so even with semantics checked this should be a valid program.