Simplify incremental lexer function.