Implement the parser's expect() function

Also start implementing parser tests.
If we're to properly handle parsing errors (and/or support a simple panic mode), expect should probably return some indication of success / failure.