A lexical analysis tool