Reformats lexer class