The first stage of the lexer