Lexer: Fix BufferedIterator implementation
Merge pull request #44 from Kha/fix-bufferediterator

Lexer: Fix BufferedIterator implementation
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
Added further test cases