Transforms from/to Lines.item
.
val make : ?name:string ->
?filename:string ->
next:(Biocaml_lines.Buffer.t ->
[ `not_ready
| `output of ('b, 'errnext) Biocaml_internal_utils.Result.t ]) ->
on_error:([ `incomplete_input of
Biocaml_internal_utils.Pos.t * string list * string option
| `next of 'errnext ] -> 'err) ->
unit ->
(string, ('b, 'err) Biocaml_internal_utils.Result.t) Biocaml_transform.t
Build a stoppable line-oriented parsing_buffer.
val make_merge_error : ?name:string ->
?filename:string ->
next:(Biocaml_lines.Buffer.t ->
[ `not_ready
| `output of
('a,
[> `incomplete_input of
Biocaml_internal_utils.Pos.t * string list * string option ]
as 'b)
Biocaml_internal_utils.Result.t ]) ->
unit ->
(string, ('a, 'b) Biocaml_internal_utils.Result.t) Biocaml_transform.t
Do like make
but merge `incomplete_input _
with the
errors of ~next
(which must be polymorphic variants).