Transept_stream.Via_parserDefine stream construction from parser.
module Parser : Transept_specs.PARSERmodule Build_via_stream :
Transept_specs.Stream.BUILDER
with type 'a t = 'a Parser.t -> Parser.e Parser.Stream.t -> 'a rThe stream builder module with a parser as a source.
module Stream :
Transept_specs.STREAM
with type 'a t = 'a r
and module Builder = Build_via_streamThe stream module with a parser as a source.
include module type of Streamtype 'a t = 'a rThe abstract type used for the stream denotation.
module Builder = Build_via_streamval build : 'a Builder.tBuild a fresh Stream using the parametric parser and a stream.
val position : 'a t -> intProvides the current absolute position in the stream. This reflect the number of read elements from the stream.
val is_empty : 'a t -> boolPredicate checking is the stream has at least one element or not.