finish spec for lexer