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_gen
s signature is char Gen.t -> lexbuf
.
In the source, it’s simply a function returning a char option
.
Where is the Gen.t
type coming from. What is it exactly? Can I open an in_channel as char Gen.t
?