The second stage of the lexer