added implementation of simple lexical analyzer