Lexical analyzer