A simple lexer written in C++.