A simple lexical Analyzer