Implement the parser's expect() function

Also start implementing parser tests.
Merge pull request #42 from jspam/020-parser-expect

Implement the parser's expect() function