finishing lexer