finish the lexical analysis.