finish lexer