Streaming Tokenization for Bencode
Sourcetype t = [ | `I of int64| `S of string| `BeginDict| `BeginList| `End
] Sourcetype 'a sequence = ('a -> unit) -> unit Encode
serializing a stream of tokens to a buffer or a channel, in text form
Decode
read a stream of tokens from a channel or string