This lexer copies the needed characters from the forward range to an internal
buffer, returning slices of it. Whether the buffer is reused (and thus all
previously returned slices invalidated) depends on the instantiation parameters.
This is slightly faster than RangeLexer, but shoudn't be used if a faster
lexer is available.
A lexer that takes a ForwardRange.
This lexer copies the needed characters from the forward range to an internal buffer, returning slices of it. Whether the buffer is reused (and thus all previously returned slices invalidated) depends on the instantiation parameters.
This is slightly faster than RangeLexer, but shoudn't be used if a faster lexer is available.