I’ve been migrating my lexer away from ocamllex to Sedlex (to enable lexing of Utf8 files).
However, I’ve seen the stream interface has been deprecated and replaced by
from_gen. According to the docs,
from_gens signature is
char Gen.t -> lexbuf.
In the source, it’s simply a function returning a
Where is the
Gen.t type coming from. What is it exactly? Can I open an in_channel as