Lexer to read input data and identify tokens as int, char, string, bool etc