First try on lexical analyzer