A simple lexical analyzer.