C++ library for managing buffers during lexing